summaryrefslogtreecommitdiff
path: root/src/vim9script.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1551: Vim9: error for argument type does not mention the numberv8.2.1551Bram Moolenaar2020-08-301-1/+1
| | | | | Problem: Vim9: error for argument type does not mention the number. Solution: Pass the argument number to where the error is given.
* patch 8.2.1504: Vim9: white space checks are only done for a :def functionv8.2.1504Bram Moolenaar2020-08-211-1/+1
| | | | | | 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.
* patch 8.2.1503: Vim9: error for autocmd defined in :def in legacy scriptv8.2.1503Bram Moolenaar2020-08-211-0/+4
| | | | | | Problem: Vim9: error for an autocmd defined in a :def function in legacy Vim script. Solution: Don't check the variable type. (closes #6758)
* patch 8.2.1460: error messages are spread outv8.2.1460Bram Moolenaar2020-08-151-19/+16
| | | | | Problem: Error messages are spread out. Solution: Move more messages into errors.h.
* patch 8.2.1444: error messages are spread out and names can be confusingv8.2.1444Bram Moolenaar2020-08-131-3/+3
| | | | | | Problem: Error messages are spread out and names can be confusing. Solution: Start moving error messages to a separate file and use clear names.
* patch 8.2.1342: Vim9: accidentally using "t" gives a confusing errorv8.2.1342Bram Moolenaar2020-08-011-1/+2
| | | | | Problem: Vim9: accidentally using "x" gives a confusing error. Solution: Disallow using ":t" in Vim9 script. (issue #6399)
* patch 8.2.1311: test failures with legacy Vim scriptv8.2.1311Bram Moolenaar2020-07-281-10/+11
| | | | | Problem: Test failures with legacy Vim script. Solution: Actually check for Vim9 script.
* patch 8.2.1308: Vim9: accidentally using "x" causes Vim to exitv8.2.1308Bram Moolenaar2020-07-281-2/+19
| | | | | Problem: Vim9: accidentally using "x" causes Vim to exit. Solution: Disallow using ":x" or "xit" in Vim9 script. (closes #6399)
* patch 8.2.1287: Vim9: crash when using an imported functionv8.2.1287Bram Moolenaar2020-07-231-0/+3
| | | | | Problem: Vim9: crash when using an imported function. Solution: Add the function type to the imported entry. (closes #6522)
* patch 8.2.1275: Vim9: compiler warning for buffer sizev8.2.1275Bram Moolenaar2020-07-231-2/+2
| | | | | Problem: Vim9: compiler warning for buffer size. Solution: Change the offset from 10 to 15. (Dominique Pellé, closes #6518)
* patch 8.2.1272: Vim9: type not checked if declaration also assigns valuev8.2.1272Bram Moolenaar2020-07-221-1/+1
| | | | | Problem: Vim9: type not checked if declaration also assigns value. Solution: Check the type. (issue #6507)
* patch 8.2.1190: Vim9: checking for Vim9 syntax is spread outv8.2.1190Bram Moolenaar2020-07-121-2/+4
| | | | | Problem: Vim9: checking for Vim9 syntax is spread out. Solution: Use in_vim9script().
* patch 8.2.1160: Vim9: memory leak in allocated typesv8.2.1160Bram Moolenaar2020-07-081-1/+1
| | | | | Problem: Vim9: memory leak in allocated types. Solution: Free the type pointers.
* patch 8.2.1148: warning for using int instead of size_tv8.2.1148Bram Moolenaar2020-07-061-1/+1
| | | | | Problem: Warning for using int instead of size_t. Solution: Change "len" argument to size_t. (Mike Williams)
* patch 8.2.1125: Vim9: double quote can be a string or a commentv8.2.1125Bram Moolenaar2020-07-041-1/+1
| | | | | Problem: Vim9: double quote can be a string or a comment. Solution: Only support comments starting with # to avoid confusion.
* patch 8.2.1124: Vim9: no line break allowed in :import commandv8.2.1124Bram Moolenaar2020-07-041-86/+116
| | | | | Problem: Vim9: no line break allowed in :import command. Solution: Skip over line breaks.
* patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()v8.2.1111Bram Moolenaar2020-07-011-2/+2
| | | | | | 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.
* patch 8.2.1012: Vim9: cannot declare single character script variablesv8.2.1012Bram Moolenaar2020-06-191-1/+1
| | | | | | Problem: Vim9: cannot declare single character script variables. Solution: Don't see "b:", "s:", etc. as namespace. Fix item size of sn_var_vals.
* patch 8.2.1011: Vim9: some code not testedv8.2.1011Bram Moolenaar2020-06-191-4/+6
| | | | | | Problem: Vim9: some code not tested. Solution: Add a few more test cases. Reorder checks for clearer error. Remove unreachable code.
* patch 8.2.0992: Vim9: crash when using :import in the Vim commandv8.2.0992Bram Moolenaar2020-06-161-2/+10
| | | | | | Problem: Vim9: crash when using :import in the Vim command. Solution: Give an error when using :import outside of a script. (closes #6271)
* patch 8.2.0975: Vim9: script variable does not accept optional s: prefixv8.2.0975Bram Moolenaar2020-06-141-3/+8
| | | | | Problem: Vim9: script variable does not accept optional s: prefix. Solution: Adjust the accepted syntax.
* patch 8.2.0974: Vim9: memory leak when script var has wrong typev8.2.0974Bram Moolenaar2020-06-131-0/+3
| | | | | Problem: Vim9: memory leak when script var has wrong type. Solution: Free the variable name.
* patch 8.2.0973: Vim9: type is not checked when assigning to a script variablev8.2.0973Bram Moolenaar2020-06-131-0/+25
| | | | | Problem: Vim9: type is not checked when assigning to a script variable. Solution: Check the type.
* patch 8.2.0972: Vim9 script variable declarations need a typev8.2.0972Bram Moolenaar2020-06-131-0/+55
| | | | | Problem: Vim9 script variable declarations need a type. Solution: Make "let var: type" declare a script-local variable.
* patch 8.2.0960: cannot use :import in legacy Vim scriptv8.2.0960Bram Moolenaar2020-06-111-10/+4
| | | | | Problem: Cannot use :import in legacy Vim script. Solution: Support :import in any Vim script.
* patch 8.2.0818: Vim9: using a discovery phase doesn't work wellv8.2.0818Bram Moolenaar2020-05-241-109/+0
| | | | | | Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier.
* patch 8.2.0806: using "func!" after vim9script gives confusing errorv8.2.0806Bram Moolenaar2020-05-211-0/+6
| | | | | Problem: using "func!" after vim9script gives confusing error. Solution: Give E477. (closes #6107)
* patch 8.2.0755: Vim9: No error when variable initializer is not a constantv8.2.0755Bram Moolenaar2020-05-151-6/+14
| | | | | | Problem: Vim9: No error when variable initializer is not a constant. Solution: Return FAIL when trying to get a variable value. Do not execute a script when an error is deteted in the first or second phase.
* patch 8.2.0731: Vim9: parsing declarations continues after :finishv8.2.0731Bram Moolenaar2020-05-101-0/+6
| | | | | Problem: Vim9: parsing declarations continues after :finish. Solution: Bail out when encountering :finish.
* patch 8.2.0725: Vim9: cannot call a function declared later in Vim9 scriptv8.2.0725Bram Moolenaar2020-05-091-2/+91
| | | | | Problem: Vim9: cannot call a function declared later in Vim9 script. Solution: Make two passes through the script file.
* patch 8.2.0650: Vim9: script function can be deletedv8.2.0650Bram Moolenaar2020-04-271-1/+1
| | | | | | Problem: Vim9: script function can be deleted. Solution: Disallow deleting script function. Delete functions when sourcing a script again.
* patch 8.2.0419: various memory leaks in Vim9 script codev8.2.0419Bram Moolenaar2020-03-201-1/+3
| | | | | Problem: Various memory leaks in Vim9 script code. Solution: Fix the leaks. (Ozaki Kiichi, closes #5814)
* patch 8.2.0368: Vim9: import that redefines local variable does not failv8.2.0368Bram Moolenaar2020-03-091-2/+8
| | | | | Problem: Vim9: import that redefines local variable does not fail. Solution: Check for already defined symbols.
* patch 8.2.0313: Vim9: insufficient script testsv8.2.0313Bram Moolenaar2020-02-231-7/+9
| | | | | Problem: Vim9: insufficient script tests. Solution: Add tests. Make import of alphanumeric name work.
* patch 8.2.0312: Vim9: insufficient script testsv8.2.0312Bram Moolenaar2020-02-231-61/+88
| | | | | Problem: Vim9: insufficient script tests. Solution: Add more tests. Make "import * as Name" work.
* patch 8.2.0172: Coverity warning for not restoring characterv8.2.0172Bram Moolenaar2020-01-281-3/+2
| | | | | Problem: Coverity warning for not restoring character. Solution: Restore the character also in case of failure.
* patch 8.2.0155: warnings from MinGW compiler; tests fail without +floatv8.2.0155Bram Moolenaar2020-01-261-0/+2
| | | | | | | Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when building without +float feature. Solution: Init variables. Fix Json parsing. Skip a few tests that require the +float feature.
* patch 8.2.0154: reallocating the list of scripts is inefficientv8.2.0154Bram Moolenaar2020-01-261-6/+6
| | | | | | | Problem: Reallocating the list of scripts is inefficient. Solution: Instead of using a growarray of scriptitem_T, store pointers and allocate each scriptitem_T separately. Also avoids that the growarray pointers change when sourcing a new script.
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-0/+405
Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.