Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8a17f58
Track Vim9 syntax per scope
jclsn Oct 19, 2026
a07ba3a
Parse Vim9 expressions
jclsn Oct 19, 2026
ebca3a9
Parse Vim9 lambdas, tuples and type casts
jclsn Oct 19, 2026
df6dd74
Parse Vim9 assignments, expression statements and blocks
jclsn Oct 19, 2026
2616fc5
Parse Vim9 declarations fully
jclsn Oct 19, 2026
67d3338
Improve parsing of :def arguments
jclsn Oct 19, 2026
3a17a6f
Parse the arguments of :import
jclsn Oct 19, 2026
17688aa
Parse Vim9 classes, interfaces, enums and type aliases
jclsn Oct 19, 2026
cf7139b
Parse interpolated strings, ?? and octal numbers
jclsn Oct 19, 2026
4b6643e
Parse :vim9cmd, :legacy, :defer and :echowindow
jclsn Oct 19, 2026
d42ecbb
Parse blocks of :command and :autocmd
jclsn Oct 19, 2026
70f9bc6
Fix comments and ranges after modifiers in Vim9 script
jclsn Oct 19, 2026
d452cc6
Update builtin commands to Vim 9.2.1178
jclsn Oct 19, 2026
054546d
Skip comment lines between continuation lines
jclsn Oct 19, 2026
17a2efa
Document Vim9 script support in README
jclsn Oct 19, 2026
337cc12
Allow a method call after the function of :call
jclsn Oct 19, 2026
7311da4
Fix the "^++" pattern in JavaScript
jclsn Oct 20, 2026
718a00e
Do not continue a Vim9 expression on an :enddef line
jclsn Oct 20, 2026
a09c56c
Fix arguments hidden by local variables in Python and JavaScript
jclsn Oct 20, 2026
961e6f6
Treat a lone Vim9 name that is a command as the command
jclsn Oct 20, 2026
da15310
Give E1100 for commands that do not exist in Vim9 script
jclsn Oct 20, 2026
61a5e5c
fixup! Parse :vim9cmd, :legacy, :defer and :echowindow
jclsn Nov 20, 2026
0ffd12c
fixup! Parse Vim9 assignments, expression statements and blocks
jclsn Nov 20, 2026
e68c80c
fixup! Skip comment lines between continuation lines
jclsn Nov 20, 2026
08d97c8
Know script variables declared after a :def function
jclsn Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,31 @@ This above code output following.
(let = s:message (printf "hello %d" (+ 1 (* 2 3))))
```

## Vim9 script

Vim9 script is parsed after `vim9script`, inside `:def` functions and Vim9
lambdas, and for commands with the `:vim9cmd` modifier. `:function` bodies
and commands with `:legacy` use legacy syntax. This includes assignments
and function calls without `:let` and `:call`, declarations with types,
`=>` lambdas with blocks, line continuation without backslash, classes,
interfaces, enums, `:type`, `:import` and `:export`.

```vim
vim9script
var total: number = [1, 2, 3]
->reduce((acc, n) => acc + n)
total += 1
```

```
(vim9script)
(var = total: number (method (list 1 2 3) (reduce (lambda (acc n) (+ acc n)))))
(assign += total 1)
```

The Vim script parser is recursive, deeply nested expressions may need a
larger 'maxfuncdepth'.

## About project name

We know a name "VimL" is not the common short form of "Vim scripting language".
Expand Down
Loading