summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3646: using <sfile> in a function gives an unexpected resultv8.2.3646Bram Moolenaar2021-11-221-0/+14
| | | | | Problem: Using <sfile> in a function gives an unexpected result. Solution: Give an error in a Vim9 function. (issue #9189)
* patch 8.2.2976: build failure without the +eval featurev8.2.2976Bram Moolenaar2021-06-111-2/+4
| | | | | Problem: Build failure without the +eval feature. Solution: Add #ifdefs.
* patch 8.2.2975: Vim9: can only use an autoload function name as a stringv8.2.2975Bram Moolenaar2021-06-111-0/+3
| | | | | Problem: Vim9: can only use an autoload function name as a string. Solution: Load the autoload script when encountered. (closes #8124)
* patch 8.2.2931: Vim9: line continuation comment uses legacy syntaxv8.2.2931Bram Moolenaar2021-06-031-2/+5
| | | | | | Problem: Vim9: line continuation comment still uses legacy syntax in one place. Solution: Check for #\ instead of "\ earlier. (closes #8316)
* patch 8.2.2925: Vim9: line continuation comment uses legacy syntaxv8.2.2925Bram Moolenaar2021-06-021-1/+2
| | | | | Problem: Vim9: line continuation comment uses legacy syntax. Solution: Check for #\ instead of "\. (closes #8295)
* patch 8.2.2616: Vim9: if 'cpo' is change in Vim9 script it may be restoredv8.2.2616Bram Moolenaar2021-03-171-0/+27
| | | | | Problem: Vim9: if 'cpo' is change in Vim9 script it may be restored. Solution: Apply the changes to 'cpo' to the restored value.
* patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redrawv8.2.2581Bram Moolenaar2021-03-101-1/+1
| | | | | | Problem: Vim9: sourcing Vim9 script triggers a redraw. Solution: Do not let setting/restoring 'cpoptions' cause a redraw. (closes #7920)
* patch 8.2.2485: when sourcing a script again the script version isn't resetv8.2.2485Bram Moolenaar2021-02-071-1/+4
| | | | | | Problem: When sourcing a script again the script version isn't reset. Solution: Set sn_version to one when sourcing a script again. Clear sn_save_cpo properly. (closes #7608)
* patch 8.2.2332: Vim9: missing :endif not reported when using :windov8.2.2332Bram Moolenaar2021-01-111-40/+16
| | | | | Problem: Vim9: missing :endif not reported when using :windo. Solution: Pass a getline function to do_cmdline(). (closes #7650)
* patch 8.2.2242: Vim9: bar line continuation does not work at script levelv8.2.2242Bram Moolenaar2020-12-291-4/+4
| | | | | Problem: Vim9: line continuation with bar does not work at script level. Solution: Check for Vim9 script.
* patch 8.2.2239: Vim9: concatenating lines with backslash is inconvenientv8.2.2239Bram Moolenaar2020-12-281-15/+23
| | | | | | Problem: Vim9: concatenating lines with backslash is inconvenient. Solution: Support concatenating lines starting with '|', useful for :autocmd, :command, etc. (closes #6702)
* patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval featurev8.2.2238Bram Moolenaar2020-12-281-7/+8
| | | | | Problem: Vim9: cannot load a Vim9 script without the +eval feature. Solution: Support Vim9 script syntax without the +eval feature.
* patch 8.2.2236: 'scroll' option can change when setting the statuslinev8.2.2236Bram Moolenaar2020-12-281-0/+3
| | | | | | | Problem: 'scroll' option can change when setting the statusline or tabline but the option context is not updated. Solution: Update the script context when the scroll option is changed as a side effect. (Christian Brabandt, closes #7533)
* patch 8.2.2226: Vim9: script test failsv8.2.2226Bram Moolenaar2020-12-271-0/+2
| | | | | Problem: Vim9: script test fails. Solution: Add missing change.
* patch 8.2.2222: Vim9: cannot keep script variables when reloadingv8.2.2222Bram Moolenaar2020-12-261-32/+18
| | | | | Problem: Vim9: cannot keep script variables when reloading. Solution: Add the "noclear" argument to :vim9script.
* patch 8.2.2208: Vim9: after reloading a script variable index may be invalidv8.2.2208Bram Moolenaar2020-12-241-0/+1
| | | | | | Problem: Vim9: after reloading a script variable index may be invalid. Solution: When the sequence number doesn't match give an error for using a script-local variable from a compiled function. (closes #7547)
* patch 8.2.2125: Vim9: leaking memoryv8.2.2125Bram Moolenaar2020-12-101-1/+1
| | | | | Problem: Vim9: leaking memory. Solution: Free the saved 'cpo' value.
* patch 8.2.2122: Vim9: crash when sourcing vim9script earlyv8.2.2122Bram Moolenaar2020-12-091-2/+1
| | | | | | Problem: Vim9: crash when sourcing vim9script early. Solution: Use set_option_value() instead of setting p_cpo directly. (closes #7441)
* patch 8.2.1980: Vim9: some tests are not done at the script levelv8.2.1980Bram Moolenaar2020-11-121-0/+3
| | | | | | Problem: Vim9: some tests are not done at the script level. Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered problems.
* patch 8.2.1900: Vim9: command modifiers do not workv8.2.1900Bram Moolenaar2020-10-241-1/+1
| | | | | Problem: Vim9: command modifiers do not work. Solution: Make most command modifiers work.
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-1/+1
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1845: Vim9: function defined in a block can't use block variablesv8.2.1845Bram Moolenaar2020-10-141-3/+4
| | | | | | | Problem: Vim9: function defined in a block can't use variables defined in that block. Solution: First step: Make a second hashtab that holds all script variables, also block-local ones, with more information.
* patch 8.2.1658: expand('<stack>') has trailing ".."v8.2.1658Bram Moolenaar2020-09-111-5/+6
| | | | | Problem: Expand('<stack>') has trailing "..". Solution: Remove the "..". (closes #6927)
* patch 8.2.1653: expand('<stack>') does not include the final line numberv8.2.1653Bram Moolenaar2020-09-101-7/+14
| | | | | Problem: Expand('<stack>') does not include the final line number. Solution: Add the line nuber. (closes #6927)
* patch 8.2.1539: using invalid script ID causes a crashv8.2.1539Bram Moolenaar2020-08-291-1/+1
| | | | | Problem: Using invalid script ID causes a crash. Solution: Check the script ID to be valid. (closes #6804)
* patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491Bram Moolenaar2020-08-201-6/+15
| | | | | | Problem: Vim9: crash when compiling heredoc lines start with comment. Solution: Skip over NULL pointers. Do not remove comment and empty lines when fetching function lines. (closes #6743)
* patch 8.2.1482: Vim9: crash when using a nested lambdav8.2.1482Bram Moolenaar2020-08-181-1/+2
| | | | | | 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)
* patch 8.2.1460: error messages are spread outv8.2.1460Bram Moolenaar2020-08-151-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more messages into errors.h.
* patch 8.2.1426: Vim9: cannot call autoload function in :def functionv8.2.1426Bram Moolenaar2020-08-121-1/+1
| | | | | Problem: Vim9: cannot call autoload function in :def function. Solution: Load the autoload script. (closes #6690)
* patch 8.2.1398: autoload script sourced twice if sourced directlyv8.2.1398Bram Moolenaar2020-08-081-1/+3
| | | | | Problem: Autoload script sourced twice if sourced directly. Solution: Do not source an autoload script again. (issue #6644)
* patch 8.2.1299: compiler warning for using size_t for int and void pointerv8.2.1299Bram Moolenaar2020-07-261-4/+4
| | | | | Problem: Compiler warning for using size_t for int and void pointer. Solution: Add type casts.
* patch 8.2.1298: compiler warning for unused argument in small versionv8.2.1298Bram Moolenaar2020-07-261-1/+1
| | | | | Problem: Compiler warning for unused argument in small version. Solution: Add UNUSED.
* patch 8.2.1297: when a test fails it's often not easy to see wherev8.2.1297Bram Moolenaar2020-07-261-30/+40
| | | | | | Problem: When a test fails it's often not easy to see what the call stack is. Solution: Add more entries from the call stack in the exception message.
* patch 8.2.1245: build failure in tiny versionv8.2.1245Bram Moolenaar2020-07-191-2/+8
| | | | | Problem: Build failure in tiny version. Solution: Add #ifdef.
* patch 8.2.1243: Vim9: cannot have a comment line halfway a listv8.2.1243Bram Moolenaar2020-07-191-2/+8
| | | | | | Problem: Vim9: cannot have a comment or empty line halfway a list at script level. Solution: Skip more than one line if needed.
* patch 8.2.1190: Vim9: checking for Vim9 syntax is spread outv8.2.1190Bram Moolenaar2020-07-121-1/+1
| | | | | Problem: Vim9: checking for Vim9 syntax is spread out. Solution: Use in_vim9script().
* patch 8.2.1154: Vim9: crash when using imported functionv8.2.1154Bram Moolenaar2020-07-081-5/+8
| | | | | | Problem: Vim9: crash when using imported function. Solution: Check for a function type. Set the script context when calling a function. (closes #6412)
* patch 8.2.1047: Vim9: script cannot use line continuation like :def functionv8.2.1047Bram Moolenaar2020-06-241-0/+9
| | | | | | 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.
* patch 8.2.1024: Vim9: no error for using "let g:var = val"v8.2.1024Bram Moolenaar2020-06-201-1/+1
| | | | | Problem: Vim9: no error for using "let g:var = val". Solution: Add an error.
* 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.0823: Vim9: script reload test is disabledv8.2.0823Bram Moolenaar2020-05-251-2/+19
| | | | | | | Problem: Vim9: script reload test is disabled. Solution: Compile a function in the context of the script where it was defined. Set execution stack for compiled function. Add a test that an error is reported for the right file/function.
* patch 8.2.0822: Vim9: code left over from discovery phasev8.2.0822Bram Moolenaar2020-05-251-56/+4
| | | | | Problem: Vim9: code left over from discovery phase. Solution: Remove the dead code.
* patch 8.2.0734: Vim9: leaking memory when using :finishv8.2.0734Bram Moolenaar2020-05-101-1/+5
| | | | | Problem: Vim9: leaking memory when using :finish. Solution: Do not check for next line in third pass.
* patch 8.2.0729: Vim9: When reloading a script variables are not clearedv8.2.0729Bram Moolenaar2020-05-101-11/+16
| | | | | Problem: Vim9: When reloading a script variables are not cleared. Solution: When sourcing a script again clear all script-local variables.
* patch 8.2.0725: Vim9: cannot call a function declared later in Vim9 scriptv8.2.0725Bram Moolenaar2020-05-091-0/+51
| | | | | Problem: Vim9: cannot call a function declared later in Vim9 script. Solution: Make two passes through the script file.
* patch 8.2.0688: output clobbered if setting 'verbose' to see shell commandsv8.2.0688Bram Moolenaar2020-05-031-2/+2
| | | | | Problem: Output clobbered if setting 'verbose' to see shell commands. Solution: Only output "Searching for" when 'verbose' is 11 or higher.
* patch 8.2.0650: Vim9: script function can be deletedv8.2.0650Bram Moolenaar2020-04-271-0/+5
| | | | | | Problem: Vim9: script function can be deleted. Solution: Disallow deleting script function. Delete functions when sourcing a script again.
* patch 8.2.0577: not all modifiers supported for :optionsv8.2.0577Bram Moolenaar2020-04-131-3/+7
| | | | | Problem: Not all modifiers supported for :options. Solution: Use all cmdmod.split flags. (closes #4401)
* patch 8.2.0467: Vim9: some errors are not testedv8.2.0467Bram Moolenaar2020-03-281-0/+1
| | | | | Problem: Vim9: some errors are not tested Solution: Add more tests. Fix that Vim9 script flag is not reset.
* patch 8.2.0419: various memory leaks in Vim9 script codev8.2.0419Bram Moolenaar2020-03-201-0/+1
| | | | | Problem: Various memory leaks in Vim9 script code. Solution: Fix the leaks. (Ozaki Kiichi, closes #5814)