Commit 75b8305
committed
Add Vim9Script support
Parse core Vim9Script constructs into proper AST nodes so that
downstream tools can analyze Vim9Script code without errors.
New node types: NODE_VIM9SCRIPT, NODE_DEF, NODE_ENDDEF, NODE_VAR,
NODE_FINAL, NODE_EXPORT, NODE_IMPORT.
Parsers for vim9script, def/enddef (with typed parameters, return
types, default values, variadics), var/final (with type annotations),
export (wrapping inner commands), and import.
The # comment syntax is supported when vim9script mode is active.
Also fix JS transpiler heuristic for subscript assignments in
compile_let to check for [ in addition to . when deciding whether
to add var prefix.
Fixes #1941 parent 4495d39 commit 75b8305
12 files changed
Lines changed: 1582 additions & 27 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments