neovim/scripts
Riley Bruins b9b408a56c
feat(treesitter): start moving get_parser to return nil #30313
**Problem:** `vim.treesitter.get_parser` will throw an error if no parser
can be found.

- This means the caller is responsible for wrapping it in a `pcall`,
  which is easy to forget
- It also makes it slightly harder to potentially memoize `get_parser`
  in the future
- It's a bit unintuitive since many other `get_*` style functions
  conventionally return `nil` if no object is found (e.g. `get_node`,
  `get_lang`, `query.get`, etc.)

**Solution:** Return `nil` if no parser can be found or created

- This requires a function signature change, and some new assertions in
  places where the parser will always (or should always) be found.
- This commit starts by making this change internally, since it is
  breaking. Eventually it will be rolled out to the public API.
2024-09-13 05:09:11 -07:00
..
bump_deps.lua fix(scripts): update bundled dependencies in bump_deps 2024-09-11 11:10:40 +02:00
cdoc_grammar.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
cdoc_parser.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
check_urls.vim vim-patch:1c5728e0c4a9 (#28703) 2024-05-11 18:14:03 +08:00
cliff.toml build(release.sh): use git cliff, drop old script 2024-05-16 00:19:17 +02:00
download-unicode-files.sh build(lintsh): double quote to prevent word splitting (#21571) 2022-12-28 22:50:24 +01:00
gen_eval_files.lua fix(docs): wrong return value annotation for nvim_buf_get_extmarks 2024-08-25 08:36:00 +01:00
gen_filetype.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
gen_help_html.lua feat(treesitter): start moving get_parser to return nil #30313 2024-09-13 05:09:11 -07:00
gen_lsp.lua docs(lsp): annotate with vim.lsp.protocol.Methods enum #29521 2024-08-20 05:52:14 -07:00
gen_vimdoc.lua docs: misc #28970 2024-09-01 13:01:24 -07:00
genappimage.sh build: various fixes 2024-02-01 12:06:55 +01:00
lintcommit.lua ci(lintcommit): allow capitalized letter after colon in description (#29480) 2024-06-26 05:08:15 +08:00
lintdoc.lua build(docs): separate lint job to validate vimdoc #27227 2024-01-28 14:22:39 -08:00
luacats_grammar.lua fix(types): use vararg return type annotation 2024-06-11 16:36:29 +01:00
luacats_parser.lua fix(gen_vimdoc): correctly generate function fields 2024-06-22 20:00:13 +01:00
release.sh build(release.sh): set VIMRUNTIME when regenerating docs (#28765) 2024-05-16 07:21:19 +08:00
shadacat.py Merge #11319 'inccommand: fix issues with modifiers and prompting' 2019-11-05 17:34:21 -08:00
text_utils.lua fix(docs): do not treat indexes as short_link 2024-08-06 18:18:34 +02:00
update_terminfo.sh build(terminfo): include user capabilities in comments (#28066) 2024-03-28 10:23:07 +08:00
vim-patch.sh build(vim-patch.sh): use 7 hex digits for runtime patch file name (#29940) 2024-08-01 20:37:43 +08:00
vimpatch.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
windows.ti feat(tui): support undercurl in WezTerm (#28037) 2024-03-26 14:25:01 +08:00