summaryrefslogtreecommitdiffstats
path: root/src/eval.c
AgeCommit message (Collapse)Author
2021-01-03patch 8.2.2292: Vim: expr test failsv8.2.2292Bram Moolenaar
Problem: Vim: expr test fails. Solution: Add missing part of "null" support.
2021-01-03patch 8.2.2290: Vim9: unlet of global variable cannot be compiledv8.2.2290Bram Moolenaar
Problem: Vim9: unlet of global variable cannot be compiled. Solution: Skip over variables that might be defined later. Give an error if a subscript is found. (closes #7585)
2021-01-03patch 8.2.2289: Vim9: 'cpo' can become emptyv8.2.2289Bram Moolenaar
Problem: Vim9: 'cpo' can become empty. Solution: Use empty_option instead of an empty string. Update quickfix buffer after restoring 'cpo'. (closes #7608)
2021-01-01patch 8.2.2268: Vim9: list unpack seen as declarationv8.2.2268Bram Moolenaar
Problem: Vim9: list unpack seen as declaration. Solution: Check for "var". (closes #7594)
2021-01-01patch 8.2.2266: Vim9: it can be hard to see where white space is missingv8.2.2266Bram Moolenaar
Problem: Vim9: it can be hard to see where white space is missing. Solution: Mention the text where the error was seen. (closes #7580)
2020-12-31patch 8.2.2257: Vim9: using -> for lambda is ambiguousv8.2.2257Bram Moolenaar
Problem: Vim9: using -> for lambda is ambiguous. Solution: Stop supporting ->, must use =>.
2020-12-30patch 8.2.2251: test failures in legacy scriptv8.2.2251Bram Moolenaar
Problem: Test failures in legacy script. Solution: Check for Vim9 script.
2020-12-30patch 8.2.2250: Vim9: sublist is ambiguousv8.2.2250Bram Moolenaar
Problem: Vim9: sublist is ambiguous. Solution: Require white space around the colon. (closes #7409)
2020-12-25patch 8.2.2212: Vim9: lambda with => does not work at the script levelv8.2.2212Bram Moolenaar
Problem: Vim9: lambda with => does not work at the script level. Solution: Make it work.
2020-12-25patch 8.2.2209: Vim9: return type of => lambda not parsedv8.2.2209Bram Moolenaar
Problem: Vim9: return type of => lambda not parsed. Solution: Parse and use the return type.
2020-12-24patch 8.2.2206: :exe command line completion only works for first argumentv8.2.2206Bram Moolenaar
Problem: :exe command line completion only works for first argument. Solution: Skip over text if more is following. (closes #7546)
2020-12-22patch 8.2.2195: failing tests for :constv8.2.2195Bram Moolenaar
Problem: Failing tests for :const. Solution: Add missing check for ASSIGN_FINAL.
2020-12-22patch 8.2.2186: Vim9: error when using 'opfunc'v8.2.2186Bram Moolenaar
Problem: Vim9: error when using 'opfunc'. Solution: Do not expect a return value from 'opfunc'. (closes #7510)
2020-12-19patch 8.2.2165: Vim9: assignment to dict member does not workv8.2.2165Bram Moolenaar
Problem: Vim9: assignment to dict member does not work. Solution: Fix recognizing dict member. (closes #7484)
2020-12-19patch 8.2.2162: Vim9: Cannot load or store autoload variablesv8.2.2162Bram Moolenaar
Problem: Vim9: Cannot load or store autoload variables. Solution: Add ISN_LOADAUTO and ISN_STOREAUTO. (closes #7485)
2020-12-18patch 8.2.2160: various typosv8.2.2160Bram Moolenaar
Problem: Various typos. Solution: Fix spelling mistakes. (closes #7494)
2020-12-13patch 8.2.2141: a user command with try/catch may not catch an expression errorv8.2.2141Bram Moolenaar
Problem: A user command with try/catch may not catch an expression error. Solution: When an expression fails check for following "|". (closes #7469)
2020-12-05patch 8.2.2094: when an expression fails getting next command may be wrongv8.2.2094Bram Moolenaar
Problem: When an expression fails getting the next command may be wrong. Solution: Do not check for a next command after :eval fails. (closes #7415)
2020-12-02patch 8.2.2082: Vim9: can still use the depricated #{} dict syntaxv8.2.2082Bram Moolenaar
Problem: Vim9: can still use the depricated #{} dict syntax. Solution: Remove support for #{} in Vim9 script. (closes #7406, closes #7405)
2020-11-28patch 8.2.2066: Vim9: assignment with += doesn't workv8.2.2066Bram Moolenaar
Problem: Vim9: assignment with += doesn't work. Solution: Do not see the "+" as an addition operator.
2020-11-25patch 8.2.2053: Vim9: lamba doesn't accept argument typesv8.2.2053Bram Moolenaar
Problem: Vim9: lamba doesn't accept argument types. Solution: Optionally accept argument types at the script level.
2020-11-23patch 8.2.2034: Vim9: list unpack in for statement not compiled yetv8.2.2034Bram Moolenaar
Problem: Vim9: list unpack in for statement not compiled yet. Solution: Compile list unpack. (closes #7345)
2020-11-21patch 8.2.2028: Coverity warns for using an uninitialized variablev8.2.2028Bram Moolenaar
Problem: Coverity warns for using an uninitialized variable. Solution: Initialize to NULL.
2020-11-12patch 8.2.1980: Vim9: some tests are not done at the script levelv8.2.1980Bram Moolenaar
Problem: Vim9: some tests are not done at the script level. Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered problems.
2020-11-05patch 8.2.1956: Vim9: cannot specify argument types for lambdav8.2.1956Bram Moolenaar
Problem: Vim9: cannot specify argument types for lambda. Solution: Allow adding argument types. Check arguments when calling a function reference.
2020-10-28patch 8.2.1914: Vim9: cannot put line break in expression for '=' registerv8.2.1914Bram Moolenaar
Problem: Vim9: cannot put line break in expression for '=' register. Solution: Pass fgetline to set_expr_line(). (closes #7209)
2020-10-22patch 8.2.1891: Vim9: skipping over expression doesn't handle line breaksv8.2.1891Bram Moolenaar
Problem: Vim9: skipping over expression doesn't handle line breaks. Solution: Pass evalarg to skip_expr(). (closes #7157)
2020-10-22patch 8.2.1890: Vim9: strange error for subtracting from a listv8.2.1890Bram Moolenaar
Problem: Vim9: strange error for subtracting from a list. Solution: Check getting a number, not a string. (closes #7167)
2020-10-15patch 8.2.1851: Vim9: "!" followed by space incorrectly usedv8.2.1851Bram Moolenaar
Problem: Vim9: "!" followed by space incorrectly used. Solution: Skip over trailing spaces. (closes #7131)
2020-10-11patch 8.2.1838: Vim9: cannot insert a comment line in an expressionv8.2.1838Bram Moolenaar
Problem: Vim9: cannot insert a comment line in an expression. Solution: Skip comment lines at the script level. (closes #7111)
2020-10-10patch 8.2.1819: Vim9: Memory leak when using a closurev8.2.1819Bram Moolenaar
Problem: Vim9: Memory leak when using a closure. Solution: Compute the mininal refcount in the funcstack. Reenable disabled tests.
2020-10-08patch 8.2.1813: Vim9: can assign wrong type to script dictv8.2.1813Bram Moolenaar
Problem: Vim9: can assign wrong type to script dict. (Christian J. Robinson) Solution: Check the type if known.
2020-10-04patch 8.2.1798: Vim9: trinary operator condition is too permissivev8.2.1798Bram Moolenaar
Problem: Vim9: trinary operator condition is too permissive. Solution: Use tv_get_bool_chk().
2020-10-03patch 8.2.1795: Vim9: operators && and || have a confusing resultv8.2.1795Bram Moolenaar
Problem: Vim9: operators && and || have a confusing result. Solution: Make the result a boolean.
2020-10-03patch 8.2.1794: no falsy Coalescing operatorv8.2.1794Bram Moolenaar
Problem: No falsy Coalescing operator. Solution: Add the "??" operator. Fix mistake with function argument count.
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-23patch 8.2.1731: Vim9: cannot use += to append to empty NULL listv8.2.1731Bram Moolenaar
Problem: Vim9: cannot use += to append to empty NULL list. Solution: Copy the list instead of extending it. (closes #6998)
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-12patch 8.2.1672: v_lock is used when it is not initializedv8.2.1672Bram Moolenaar
Problem: v_lock is used when it is not initialized. (Yegappan Lakshmanan) Solution: Initialize the typval in eval1().
2020-09-12patch 8.2.1671: Vim9: stray error for missing white spacev8.2.1671Bram Moolenaar
Problem: Vim9: stray error for missing white space. Solution: Do not skip over white space after member. (closes #6817)
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.1560: using NULL pointers in some codev8.2.1560Bram Moolenaar
Problem: Using NULL pointers in some code. (James McCoy) Solution: Avoid adding to a NULL pointer. Use byte as unsigned.
2020-08-30patch 8.2.1551: Vim9: error for argument type does not mention the numberv8.2.1551Bram Moolenaar
Problem: Vim9: error for argument type does not mention the number. Solution: Pass the argument number to where the error is given.
2020-08-28patch 8.2.1532: compiler warning for conversion of size_t to longv8.2.1532Bram Moolenaar
Problem: Compiler warning for conversion of size_t to long. Solution: Add type cast.
2020-08-25patch 8.2.1524: no longer get an error for string concatenation with floatv8.2.1524Bram Moolenaar
Problem: No longer get an error for string concatenation with float. (Tsuyoshi Cho) Solution: Only convert float for Vim9 script. (closes #6787)
2020-08-22patch 8.2.1512: failure after trinary expression failsv8.2.1512Bram Moolenaar
Problem: Failure after trinary expression fails. Solution: Restore eval_flags. (Yasuhiro Matsumoto, closes #6776)
2020-08-22patch 8.2.1507: using malloc() directlyv8.2.1507Bram Moolenaar
Problem: Using malloc() directly. Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi, closes #6768)
2020-08-20patch 8.2.1499: Vim9: error when using "$" with col()v8.2.1499Bram Moolenaar
Problem: Vim9: error when using "$" with col(). Solution: Reorder getting the column value. (closes #6744)
2020-08-20patch 8.2.1494: missing change to calling eval_getline()v8.2.1494Bram Moolenaar
Problem: Missing change to calling eval_getline(). Solution: Change last argument.