Mercurial > vim
annotate src/proto/vim9compile.pro @ 30795:b8cda1e1c985 v9.0.0732
patch 9.0.0732: no check for white space before and after "=<<"
Commit: https://github.com/vim/vim/commit/d987642626f84fe2f0b32a1ca5ede31b436ce677
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 12 12:58:54 2022 +0100
patch 9.0.0732: no check for white space before and after "=<<"
Problem: No check for white space before and after "=<<". (Doug Kearns)
Solution: Check for white space in Vim9 script. (closes https://github.com/vim/vim/issues/11351)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Oct 2022 14:00:04 +0200 |
parents | c0f0118b6790 |
children | 67d9fbe516a3 |
rev | line source |
---|---|
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* vim9compile.c */ |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
2 int lookup_local(char_u *name, size_t len, lvar_T *lvar, cctx_T *cctx); |
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
3 int arg_exists(char_u *name, size_t len, int *idxp, type_T **type, int *gen_load_outer, cctx_T *cctx); |
30249
c0f0118b6790
patch 9.0.0460: loop variable can't be found
Bram Moolenaar <Bram@vim.org>
parents:
28813
diff
changeset
|
4 void update_script_var_block_id(char_u *name, int block_id); |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
5 int script_is_vim9(void); |
27611
e311a80f8cbe
patch 8.2.4332: Vim9: incomplete test for existing script variable in block
Bram Moolenaar <Bram@vim.org>
parents:
27515
diff
changeset
|
6 int script_var_exists(char_u *name, size_t len, cctx_T *cctx, cstack_T *cstack); |
e311a80f8cbe
patch 8.2.4332: Vim9: incomplete test for existing script variable in block
Bram Moolenaar <Bram@vim.org>
parents:
27515
diff
changeset
|
7 int check_defined(char_u *p, size_t len, cctx_T *cctx, cstack_T *cstack, int is_arg); |
27515
1aff400b819e
patch 8.2.4285: Vim9: type of item in for loop not checked properly
Bram Moolenaar <Bram@vim.org>
parents:
27043
diff
changeset
|
8 int need_type_where(type_T *actual, type_T *expected, int offset, where_T where, cctx_T *cctx, int silent, int actual_is_const); |
23640
8dcb2255ff9a
patch 8.2.2362: Vim9: check of builtin function argument type is incomplete
Bram Moolenaar <Bram@vim.org>
parents:
23553
diff
changeset
|
9 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
10 lvar_T *reserve_local(cctx_T *cctx, char_u *name, size_t len, int isConst, type_T *type); |
27613
42d0279c6e7c
patch 8.2.4333: cstack not always passed to where it is needed
Bram Moolenaar <Bram@vim.org>
parents:
27611
diff
changeset
|
11 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx, cstack_T *cstack); |
27698
3813036f19cb
patch 8.2.4375: ctx_imports is not used
Bram Moolenaar <Bram@vim.org>
parents:
27613
diff
changeset
|
12 imported_T *find_imported(char_u *name, size_t len, int load); |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
13 char_u *may_peek_next_line(cctx_T *cctx, char_u *arg, char_u **nextp); |
21208
09377fd59b2e
patch 8.2.1155: Vim9: cannot handle line break inside lambda
Bram Moolenaar <Bram@vim.org>
parents:
21194
diff
changeset
|
14 char_u *peek_next_line_from_context(cctx_T *cctx); |
09377fd59b2e
patch 8.2.1155: Vim9: cannot handle line break inside lambda
Bram Moolenaar <Bram@vim.org>
parents:
21194
diff
changeset
|
15 char_u *next_line_from_context(cctx_T *cctx, int skip_comment); |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
16 int may_get_next_line(char_u *whitep, char_u **arg, cctx_T *cctx); |
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
17 int may_get_next_line_error(char_u *whitep, char_u **arg, cctx_T *cctx); |
24188
c20e763bc73c
patch 8.2.2635: Vim9: cannot define an inline function
Bram Moolenaar <Bram@vim.org>
parents:
24033
diff
changeset
|
18 void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx); |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
19 int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type); |
28813
3626ca6a20ea
patch 8.2.4930: interpolated string expression requires escaping
Bram Moolenaar <Bram@vim.org>
parents:
28718
diff
changeset
|
20 char_u *compile_one_expr_in_str(char_u *p, cctx_T *cctx); |
28718
723c7d940cba
patch 8.2.4883: string interpolation only works in heredoc
Bram Moolenaar <Bram@vim.org>
parents:
28560
diff
changeset
|
21 int compile_all_expr_in_str(char_u *str, int evalstr, cctx_T *cctx); |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
22 int assignment_len(char_u *p, int *heredoc); |
20953
6b4b887a12f0
patch 8.2.1028: Vim9: no error for declaring buffer, window, etc. variable
Bram Moolenaar <Bram@vim.org>
parents:
20943
diff
changeset
|
23 void vim9_declare_error(char_u *name); |
28281
bd1dcc605e58
patch 8.2.4666: Vim9: assignment not recognized in skipped block
Bram Moolenaar <Bram@vim.org>
parents:
28101
diff
changeset
|
24 int get_var_dest(char_u *name, assign_dest_T *dest, cmdidx_T cmdidx, int *option_scope, int *vimvaridx, type_T **type, cctx_T *cctx); |
bd1dcc605e58
patch 8.2.4666: Vim9: assignment not recognized in skipped block
Bram Moolenaar <Bram@vim.org>
parents:
28101
diff
changeset
|
25 int compile_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int heredoc, int has_cmd, int oplen, cctx_T *cctx); |
bd1dcc605e58
patch 8.2.4666: Vim9: assignment not recognized in skipped block
Bram Moolenaar <Bram@vim.org>
parents:
28101
diff
changeset
|
26 int compile_assign_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int is_decl, int heredoc, int has_cmd, int oplen, cctx_T *cctx); |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
27 int compile_load_lhs_with_index(lhs_T *lhs, char_u *var_start, cctx_T *cctx); |
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
25939
diff
changeset
|
28 int compile_assign_unlet(char_u *var_start, lhs_T *lhs, int is_assign, type_T *rhs_type, cctx_T *cctx); |
28101
3bc0a639dfb0
patch 8.2.4575: Vim9: test for profiling still fails
Bram Moolenaar <Bram@vim.org>
parents:
27698
diff
changeset
|
29 compiletype_T get_compile_type(ufunc_T *ufunc); |
24895
e61a2085c89b
patch 8.2.2985: Vim9: a compiled function cannot be debugged
Bram Moolenaar <Bram@vim.org>
parents:
24388
diff
changeset
|
30 int compile_def_function(ufunc_T *ufunc, int check_return_type, compiletype_T compile_type, cctx_T *outer_cctx); |
20532
cb4831fa7e25
patch 8.2.0820: Vim9: function type isn't set until compiled
Bram Moolenaar <Bram@vim.org>
parents:
20528
diff
changeset
|
31 void set_function_type(ufunc_T *ufunc); |
22324
a4ed0de125d9
patch 8.2.1711: Vim9: leaking memory when using partial
Bram Moolenaar <Bram@vim.org>
parents:
21711
diff
changeset
|
32 void unlink_def_function(ufunc_T *ufunc); |
23285
112fa621b127
patch 8.2.2188: Vim9: crash when calling global function from :def function
Bram Moolenaar <Bram@vim.org>
parents:
22946
diff
changeset
|
33 void link_def_function(ufunc_T *ufunc); |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
34 void free_def_functions(void); |
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
35 /* vim: set ft=c : */ |