diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-10-04 06:01:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-04 06:01:16 +0800 |
| commit | 2c76a50e20ded88b1767562455d2999fd2faa0de (patch) | |
| tree | 7f56eff17899d9f878614c8a096b5c507e24d477 /test/functional/vimscript/executable_spec.lua | |
| parent | 8151fc59cf28d8a4ba1693379d06726015b61aa9 (diff) | |
| download | rneovim-2c76a50e20ded88b1767562455d2999fd2faa0de.tar.gz rneovim-2c76a50e20ded88b1767562455d2999fd2faa0de.tar.bz2 rneovim-2c76a50e20ded88b1767562455d2999fd2faa0de.zip | |
vim-patch:9.1.1821: filetype: Not all PKL files are recognized (#36008)
Problem: filetype: Not all PKL files are recognized
Solution: Detect *.pcf as pkl filetype, detect using the pkl-lsp://
protocol as pkl filetype, include PKL syntax script
(Jan Claußen)
This adds basic syntax support for the new PKL language by Apple.
What works:
- Shebang support
- Comment support
- Integers (decimal, hex, octal and binary) support
- Floating point support including exponentials
- Basic datatype support
- Unicode escape delimiters
- Escape code support
- String interpolation
- Support up to five pounds for custom delimiters
- Folding of multi-line comments and blocks
What doesn't work:
The language heavily uses parameterized type declarations, which can get
very complex. It is very hard to highlight this properly. There is
official Tree-sitter support for this. Since it is hard to pull this off
in a vim syntax file, I opted for basic support of the data types.
References:
https://github.com/apple/pkl-pantry
fixes: vim/vim#18271
closes: vim/vim#18274
https://github.com/vim/vim/commit/67a8f2945e54def2a9a94aad919e4f489595acb7
Co-authored-by: Jan Claußen <jan.claussen10@web.de>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions