summaryrefslogtreecommitdiffstats
path: root/src/eval.c
AgeCommit message (Collapse)Author
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.
2020-08-18patch 8.2.1482: Vim9: crash when using a nested lambdav8.2.1482Bram Moolenaar
Problem: Vim9: crash when using a nested lambda. Solution: Do not clear the growarray when not evaluating. Correct pointer when getting the next line. (closes #6731)
2020-08-18patch 8.2.1480: Vim9: skip expression in search() gives errorv8.2.1480Bram Moolenaar
Problem: Vim9: skip expression in search() gives error. Solution: use tv_get_bool() eval_expr_to_bool(). (closes #6729)
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.1468: Vim9: invalid error for missing white spacev8.2.1468Bram Moolenaar
Problem: Vim9: invalid error for missing white space. Solution: Don't skip over white space after index. (closes #6718)
2020-08-16patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"v8.2.1466Bram Moolenaar
Problem: Vim9: cannot index or slice a variable with type "any". Solution: Add runtime index and slice.
2020-08-16patch 8.2.1465: Vim9: subscript not handled properlyv8.2.1465Bram Moolenaar
Problem: Vim9: subscript not handled properly. Solution: Adjust error message. Remove dead code. Disallow string to number conversion in scripts.
2020-08-15patch 8.2.1463: Vim9: list slice not supported yetv8.2.1463Bram Moolenaar
Problem: Vim9: list slice not supported yet. Solution: Add support for list slicing.
2020-08-15patch 8.2.1462: Vim9: string slice not supported yetv8.2.1462Bram Moolenaar
Problem: Vim9: string slice not supported yet. Solution: Add support for string slicing.
2020-08-15patch 8.2.1461: Vim9: string indexes are counted in bytesv8.2.1461Bram Moolenaar
Problem: Vim9: string indexes are counted in bytes. Solution: Use character indexes. (closes #6574)
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-12patch 8.2.1437: Vim9: 'statusline' is evaluated using Vim9 script syntaxv8.2.1437Bram Moolenaar
Problem: Vim9: 'statusline' is evaluated using Vim9 script syntax. Solution: Always use legacy script syntax.
2020-08-12patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakesv8.2.1435Bram Moolenaar
Problem: Vim9: always converting to string for ".." leads to mistakes. Solution: Only automatically convert simple types.
2020-08-10patch 8.2.1416: Vim9: boolean evaluation does not work as intendedv8.2.1416Bram Moolenaar
Problem: Vim9: boolean evaluation does not work as intended. Solution: Use tv2bool() in Vim9 script. (closes #6681)
2020-08-09patch 8.2.1412: Vim: not operator does not result in booleanv8.2.1412Bram Moolenaar
Problem: Vim: not operator does not result in boolean. Solution: Make type depend on operator. (issue 6678) Fix using "false" and "true" in Vim9 script.
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-07patch 8.2.1387: Vim9: cannot assign to single letter variable with typev8.2.1387Bram Moolenaar
Problem: Vim9: cannot assign to single letter variable with type. Solution: Exclude the colon from the variable name. (closes #6647)
2020-08-06patch 8.2.1378: cannot put space between function name and parenv8.2.1378Bram Moolenaar
Problem: Cannot put space between function name and paren. Solution: Allow this for backwards compatibility.
2020-08-05patch 8.2.1372: Vim9: no error for missing white space around operatorv8.2.1372Bram Moolenaar
Problem: Vim9: no error for missing white space around operator. Solution: Check for white space around ? and :.
2020-08-05patch 8.2.1371: Vim9: no error for missing white space around operatorv8.2.1371Bram Moolenaar
Problem: Vim9: no error for missing white space around operator. Solution: Check for white space around && and ||.
2020-08-05patch 8.2.1368: Vim9: no error for missing white space around operatorv8.2.1368Bram Moolenaar
Problem: Vim9: no error for missing white space around operator. Solution: Check for white space around <, !=, etc.
2020-08-05patch 8.2.1367: Vim9: no error for missing white space around operatorv8.2.1367Bram Moolenaar
Problem: Vim9: no error for missing white space around operator. Solution: Check for white space around *, / and %.
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-04patch 8.2.1361: error for white space after expression in assignmentv8.2.1361Bram Moolenaar
Problem: Error for white space after expression in assignment. Solution: Skip over white space. (closes #6617)
2020-08-03patch 8.2.1360: stray error for white space after expressionv8.2.1360Bram Moolenaar
Problem: Stray error for white space after expression. Solution: Ignore trailing white space. (closes #6608)
2020-07-30patch 8.2.1326: Vim9: skipping over white space after listv8.2.1326Bram Moolenaar
Problem: Vim9: skipping over white space after list. Solution: Do not skip white space, a following [] would be misinterpreted. (closes #6552) Fix a few side effects.
2020-07-29patch 8.2.1323: Vim9: invalid operators only rejected in :def functionv8.2.1323Bram Moolenaar
Problem: Vim9: invalid operators only rejected in :def function. Solution: Also reject them at script level. (closes #6564)
2020-07-27patch 8.2.1306: checking for first character of dict key is inconsistentv8.2.1306Bram Moolenaar
Problem: Checking for first character of dict key is inconsistent. Solution: Add eval_isdictc(). (closes #6546)
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-22patch 8.2.1272: Vim9: type not checked if declaration also assigns valuev8.2.1272Bram Moolenaar
Problem: Vim9: type not checked if declaration also assigns value. Solution: Check the type. (issue #6507)
2020-07-21patch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 scriptv8.2.1263Bram Moolenaar
Problem: Vim9: comperators use 'ignorecase' in Vim9 script. Solution: Ignore 'ignorecase'. Use true and false instead of 1 and 0. (closes #6497)
2020-07-19patch 8.2.1243: Vim9: cannot have a comment line halfway a listv8.2.1243Bram Moolenaar
Problem: Vim9: cannot have a comment or empty line halfway a list at script level. Solution: Skip more than one line if needed.
2020-07-13patch 8.2.1205: Vim9: && and || work different when not compiledv8.2.1205Bram Moolenaar
Problem: Vim9: && and || work different when not compiled. Solution: Keep the value.
2020-07-13patch 8.2.1204: Vim9: true and false not recognized in Vim9 scriptv8.2.1204Bram Moolenaar
Problem: Vim9: true and false not recognized in Vim9 script. Solution: Recognize true and false.
2020-07-13patch 8.2.1203: unused assignments in expression evaluationv8.2.1203Bram Moolenaar
Problem: Unused assignments in expression evaluation. Solution: Move declarations and assignments to inner blocks where possible.
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-12patch 8.2.1189: Vim9: line continuation in lambda doesn't always workv8.2.1189Bram Moolenaar
Problem: Vim9: line continuation in lambda doesn't always work. Solution: Do not use a local evalarg unless there isn't one. (closes #6439)
2020-07-10patch 8.2.1176: Vim9: not enough type checking in Vim9 scriptv8.2.1176Bram Moolenaar
Problem: Vim9: not enough type checking in Vim9 script. Solution: Use same type checking as in a :def function.
2020-07-08patch 8.2.1161: Vim9: using freed memoryv8.2.1161Bram Moolenaar
Problem: Vim9: using freed memory. Solution: Put pointer back in evalarg instead of freeing it.
2020-07-08patch 8.2.1155: Vim9: cannot handle line break inside lambdav8.2.1155Bram Moolenaar
Problem: Vim9: cannot handle line break inside lambda. Solution: Pass the compilation context through. (closes #6407, closes #6409)
2020-07-04patch 8.2.1125: Vim9: double quote can be a string or a commentv8.2.1125Bram Moolenaar
Problem: Vim9: double quote can be a string or a comment. Solution: Only support comments starting with # to avoid confusion.
2020-07-03patch 8.2.1122: Vim9: line continuation in dict member not recognizedv8.2.1122Bram Moolenaar
Problem: Vim9: line continuation in dict member not recognized. Solution: Check for line continuation.