This file is a merged representation of a subset of the codebase, containing files not matching ignore patterns, combined into a single document by Repomix.
The content has been processed where comments have been removed, empty lines have been removed, content has been compressed (code blocks are separated by ⋮---- delimiter).

<file_summary>
This section contains a summary of this file.

<purpose>
This file contains a packed representation of a subset of the repository's contents that is considered the most important context.
It is designed to be easily consumable by AI systems for analysis, code review,
or other automated processes.
</purpose>

<file_format>
The content is organized as follows:
1. This summary section
2. Repository information
3. Directory structure
4. Repository files (if enabled)
5. Multiple file entries, each consisting of:
  - File path as an attribute
  - Full contents of the file
</file_format>

<usage_guidelines>
- This file should be treated as read-only. Any changes should be made to the
  original repository files, not this packed version.
- When processing this file, use the file path to distinguish
  between different files in the repository.
- Be aware that this file may contain sensitive information. Handle it with
  the same level of security as you would the original repository.
</usage_guidelines>

<notes>
- Some files may have been excluded based on .gitignore rules and Repomix's configuration
- Binary files are not included in this packed representation. Please refer to the Repository Structure section for a complete list of file paths, including binary files
- Files matching these patterns are excluded: **/.git/**, **/.github/**, **/node_modules/**, **/vendor/**, **/third_party/**, **/external/**, **/libs/**, **/lib/**, **/bin/**, **/obj/**, **/build/**, **/dist/**, **/target/**, **/out/**, **/release/**, **/debug/**, **/wwwroot/**, **/public/**, **/assets/**, **/static/**, **/[tT]est/**, **/[tT]ests/**, **/__tests__/**, **/[lL]ogs/**, **/[mM]igrations/**, **/.vs/**, **/.vscode/**, **/.idea/**, **/.pnpm-store/**, **/.yarn/**, **/.npm/**, **/__pycache__/**, **/.pytest_cache/**, **/.mypy_cache/**, **/.gradle/**, **/.mvn/**, **/coverage/**, **/.coverage/**, **/reports/**, **/report/**, **/TestResults/**, **/tmp/**, **/temp/**, **/.tmp/**, **/.cache/**, **/.history/**, **/.DS_Store, **/Thumbs.db, **/*.log, **/*.out, **/*.err, **/*.trace, **/*.trc, **/*.tmp, **/*.cache, **/*.dmp, **/*.dump, **/*.core, **/*.binlog, **/*.ndjson, **/*.jsonl, **/*.csv, **/*.evtx, **/*.etl, **/*.access, **/*.error, **/*.exe, **/*.dll, **/*.so, **/*.dylib, **/*.bin, **/*.app, **/*.msi, **/*.apk, **/*.ipa, **/*.lib, **/*.a, **/*.o, **/*.obj, **/*.lo, **/*.lai, **/*.class, **/*.jar, **/*.war, **/*.ear, **/*.pdb, **/*.idb, **/*.ilk, **/*.nupkg, **/*.snupkg, **/*.gem, **/*.whl, **/*.egg, **/*.deb, **/*.rpm, **/*.zip, **/*.tar, **/*.gz, **/*.tgz, **/*.rar, **/*.bz2, **/*.xz, **/*.7z, **/*.lz, **/*.lzma, **/*.min.js, **/*.min.css, **/*.map, **/*.css, **/*.scss, **/*.sass, **/*.less, **/*.jpg, **/*.jpeg, **/*.png, **/*.gif, **/*.bmp, **/*.tif, **/*.tiff, **/*.webp, **/*.heif, **/*.heic, **/*.svg, **/*.eps, **/*.ai, **/*.raw, **/*.cr2, **/*.cr3, **/*.nef, **/*.arw, **/*.dng, **/*.orf, **/*.rw2, **/*.avif, **/*.apng, **/*.ico, **/*.psd, **/*.psb, **/*.xcf, **/*.hdr, **/*.exr, **/*.dcm, **/*.dicom, **/*.fits, **/*.ppm, **/*.pgm, **/*.pbm, **/*.j2k, **/*.jp2, **/*.pcx, **/*.tga, **/*.iff, **/*.sgi, **/*.ras, **/*.coverage, **/*.lcov, **/*.gcov, **/*.gcda, **/*.gcno, **/*.generated, **/*.g.cs, **/*.designer.cs, **/*.lock, **/*.lock.json, **/*.eot, **/*.ttf, **/*.woff, **/*.woff2, **/*.pfx, **/*.p12, **/*.cer, **/*.crt, **/*.key, **/*.editorconfig, **/*.tool-versions, **/*.onnx, **/*.pt, **/*.pth, **/*.h5, **/*.ckpt, **/*.sln, **/*.csproj, **/*.config, **/*.user, **/*.vsidx, **/*.v2, **/*.db*, **/.*ignore, **/.git*, **/*.config.*, **/*.bzl, **/*.gradle, **/*.kts, **/pom.xml, **/Makefile*, **/*.mak, **/*.cmake, **/CMakeLists.txt, **/cmake/**, **/cmake.config/**, **/cmake.deps/**, **/cmake.packaging/**, **/.gitignore, **/.gitattributes, **/.git-blame-ignore-revs, **/.editorconfig, **/.clang-format, **/.clang-tidy, **/.clangd, **/.mailmap, **/*.zsh, **/.idea/**, **/.eclipse/**, **/.settings/**, **/.vscode/**, **/.github/**, **/scripts/**, **/src/gen/**, **/generated/**, **/auto/**, **/out/**, **/test/**/fixtures/**, **/test/old/**, **/test/includes/**, **/test/benchmark/**, **/runtime/autoload/**, **/runtime/lua/vim/provider/**, **/runtime/pack/dist/**, **/runtime/doc/**, **/runtime/tutor/**, **/runtime/spell/**, **/runtime/syntax/**, **/runtime/queries/**, **/runtime/colors/**, **/runtime/ftplugin/**, **/runtime/indent/**, **/runtime/keymap/**, **/runtime/plugin/**, **/src/klib/**, **/src/lpeg/**, **/src/mpack/**, **/src/cjson/**, **/src/xxd/**, **/src/xdiff/**
- Files matching patterns in .gitignore are excluded
- Files matching default ignore patterns are excluded
- Code comments have been removed from supported file types
- Empty lines have been removed from all files
- Content has been compressed - code blocks are separated by ⋮---- delimiter
- Files are sorted by Git change count (files with more changes are at the bottom)
</notes>

</file_summary>

<directory_structure>
contrib/
  gdb/
    neovim_gdb.vim
    nvim-gdb-pretty-printers.py
  asan.sh
  local.mk.example
  minimal.lua
  nvim.bash
  test_wasm.html
runtime/
  compiler/
    ant.vim
    bash.vim
    bcc.vim
    bdf.vim
    bean_check.vim
    biome.vim
    cabal.vim
    cargo.vim
    checkstyle.vim
    cm3.vim
    context.vim
    cppcheck.vim
    cs.vim
    csslint.vim
    cucumber.vim
    dart.vim
    dart2js.vim
    dart2native.vim
    dartanalyser.vim
    dartdevc.vim
    dartdoc.vim
    dartfmt.vim
    decada.vim
    dot.vim
    dotnet.vim
    erlang.vim
    eruby.vim
    eslint.vim
    fbc.vim
    fortran_cv.vim
    fortran_elf90.vim
    fortran_F.vim
    fortran_g77.vim
    fortran_lf95.vim
    fpc.vim
    g95.vim
    gawk.vim
    gcc.vim
    gfortran.vim
    ghc.vim
    gjs.vim
    gleam_build.vim
    gm2.vim
    gnat.vim
    go.vim
    groff.vim
    haml.vim
    hare.vim
    hp_acc.vim
    iar.vim
    icc.vim
    icon.vim
    ifort.vim
    intel.vim
    irix5_c.vim
    irix5_cpp.vim
    javac.vim
    jest.vim
    jikes.vim
    jjs.vim
    jq.vim
    jshint.vim
    jsonlint.vim
    just.vim
    make.vim
    maven.vim
    mcs.vim
    mips_c.vim
    mipspro_c89.vim
    mipspro_cpp.vim
    modelsim_vcom.vim
    msbuild.vim
    msvc.vim
    mypy.vim
    neato.vim
    ocaml.vim
    onsgmls.vim
    pandoc.vim
    pbx.vim
    perl.vim
    perlcritic.vim
    php.vim
    phpstan.vim
    pip_compile.vim
    podchecker.vim
    powershell.vim
    pylint.vim
    pyright.vim
    pytest.vim
    pyunit.vim
    raco.vim
    racomake.vim
    racosetup.vim
    racotest.vim
    rake.vim
    README.txt
    rhino.vim
    rime_deployer.vim
    rspec.vim
    rst.vim
    rubocop.vim
    ruby.vim
    rubyunit.vim
    ruff.vim
    rustc.vim
    sass.vim
    scdoc.vim
    se.vim
    shellcheck.vim
    sml.vim
    spectral.vim
    splint.vim
    spotbugs.vim
    stack.vim
    standard.vim
    stylelint.vim
    svelte-check.vim
    tcl.vim
    tex.vim
    tidy.vim
    tombi.vim
    ts-node.vim
    tsc.vim
    ty.vim
    typedoc.vim
    typst.vim
    vimdoc.vim
    xbuild.vim
    xmllint.vim
    xmlwf.vim
    xo.vim
    yamllint.vim
    zig_build_exe.vim
    zig_build.vim
    zig_cc.vim
    zig_test.vim
    zig.vim
    zsh.vim
  lua/
    nvim/
      dir/
        fs.lua
      zip/
        health.lua
      autoread.lua
      dir.lua
      matchparen.lua
      spellfile.lua
      tutor.lua
      zip.lua
    uv/
      _meta.lua
    vim/
      _core/
        ui2/
          cmdline.lua
          messages.lua
        cmdwin.lua
        defaults.lua
        editor.lua
        ex_cmd.lua
        exmode.lua
        exrc.lua
        help.lua
        log.lua
        marks.lua
        mcursor.lua
        options.lua
        proc.lua
        server.lua
        shared.lua
        spell.lua
        stringbuffer.lua
        swapfile.lua
        system.lua
        table.lua
        tag.lua
        time.lua
        ui.lua
        ui2.lua
        util.lua
        vimfn.lua
      _ftplugin/
        lua.lua
      _meta/
        api_keysets_extra.lua
        api_keysets.gen.lua
        api.gen.lua
        base64.lua
        builtin.lua
        events.lua
        json.lua
        lpeg.lua
        misc.lua
        mpack.lua
        options.gen.lua
        re.lua
        regex.lua
        spell.lua
        tui.lua
        vimfn_types.lua
        vimfn.gen.lua
        vvars_extra.lua
        vvars.gen.lua
      async/
        _core.lua
        _event.lua
        _future.lua
        _queue.lua
        _runtime.lua
        _semaphore.lua
      deprecated/
        health.lua
      diagnostic/
        _config.lua
        _display.lua
        _float.lua
        _handlers.lua
        _jump.lua
        _severity.lua
        _shared.lua
        _store.lua
      filetype/
        detect.lua
        options.lua
      func/
        _memoize.lua
      health/
        health.lua
      lsp/
        _meta/
          protocol.lua
        _capability.lua
        _changetracking.lua
        _folding_range.lua
        _meta.lua
        _snippet_grammar.lua
        _watchfiles.lua
        buf.lua
        client.lua
        codelens.lua
        completion.lua
        diagnostic.lua
        document_color.lua
        handlers.lua
        health.lua
        inlay_hint.lua
        inline_completion.lua
        linked_editing_range.lua
        log.lua
        on_type_formatting.lua
        protocol.lua
        rpc.lua
        semantic_tokens.lua
        sync.lua
        tagfunc.lua
        util.lua
      net/
        _ssh.lua
        _transport.lua
      pack/
        _lsp.lua
        health.lua
      pos/
        _util.lua
      treesitter/
        _meta/
          misc.lua
          tsnode.lua
          tsquery.lua
          tstree.lua
        _fold.lua
        _headings.lua
        _query_linter.lua
        _range.lua
        _select.lua
        dev.lua
        health.lua
        highlighter.lua
        language.lua
        languagetree.lua
        query.lua
      ui/
        clipboard/
          osc52.lua
        img/
          _kitty.lua
        img.lua
      _comment.lua
      _init_packages.lua
      _inspector.lua
      _meta.lua
      _watch.lua
      async.lua
      diagnostic.lua
      F.lua
      filetype.lua
      fs.lua
      func.lua
      glob.lua
      health.lua
      hl.lua
      inspect.lua
      iter.lua
      keymap.lua
      loader.lua
      log.lua
      lsp.lua
      net.lua
      pack.lua
      pos.lua
      provider.lua
      range.lua
      re.lua
      secure.lua
      snippet.lua
      text.lua
      treesitter.lua
      tty.lua
      ui.lua
      uri.lua
      version.lua
    coxpcall.lua
    editorconfig.lua
    man.lua
  delmenu.vim
  embedded_data.zig
  example_init.lua
  filetype.lua
  ftoff.vim
  ftplugin.vim
  ftplugof.vim
  gen_runtime.zig
  indent.vim
  indoff.vim
  makemenu.vim
  menu.vim
  org.neovim.nvim.appdata.xml
  org.neovim.nvim.desktop
  synmenu.vim
  windows_icon.rc
src/
  man/
    Makefile
    nvim.1
  nvim/
    api/
      private/
        converter.c
        converter.h
        defs.h
        dispatch.c
        dispatch.h
        helpers.c
        helpers.h
        validate.c
        validate.h
      autocmd.c
      autocmd.h
      buffer.c
      buffer.h
      command.c
      command.h
      deprecated.c
      deprecated.h
      dispatch_deprecated.lua
      events.c
      events.h
      extmark.c
      extmark.h
      keysets_defs.h
      options.c
      options.h
      tabpage.c
      tabpage.h
      ui_events.in.h
      ui.c
      ui.h
      vim.c
      vim.h
      vimscript.c
      vimscript.h
      win_config.c
      win_config.h
      window.c
      window.h
    eval/
      buffer.c
      buffer.h
      decode.c
      decode.h
      deprecated.c
      deprecated.h
      encode.c
      encode.h
      executor.c
      executor.h
      fs.c
      fs.h
      funcs.c
      funcs.h
      gc.c
      gc.h
      list.c
      list.h
      typval_defs.h
      typval_encode.c.h
      typval_encode.h
      typval.c
      typval.h
      userfunc.c
      userfunc.h
      vars.c
      vars.h
      window.c
      window.h
    event/
      defs.h
      libuv_proc.c
      libuv_proc.h
      loop.c
      loop.h
      multiqueue.c
      multiqueue.h
      proc.c
      proc.h
      rstream.c
      rstream.h
      signal.c
      signal.h
      socket.c
      socket.h
      stream.c
      stream.h
      time.c
      time.h
      wstream.c
      wstream.h
    lua/
      api_wrappers.c
      base64.c
      base64.h
      converter.c
      converter.h
      executor.c
      executor.h
      secure.c
      secure.h
      spell.c
      spell.h
      stdlib.c
      stdlib.h
      treesitter.c
      treesitter.h
      xdiff.c
      xdiff.h
    msgpack_rpc/
      channel_defs.h
      channel.c
      channel.h
      packer_defs.h
      packer.c
      packer.h
      server.c
      server.h
      unpacker.c
      unpacker.h
    os/
      dl.c
      dl.h
      env.c
      fileio_defs.h
      fileio.c
      fileio.h
      fs_defs.h
      fs.c
      fs.h
      input.c
      input.h
      lang.c
      lang.h
      mem.c
      nvim.manifest
      nvim.rc
      os_defs.h
      os_win_console.c
      os_win_console.h
      os.h
      proc.c
      proc.h
      pty_conpty_win.c
      pty_conpty_win.h
      pty_proc_unix.c
      pty_proc_unix.h
      pty_proc_win.c
      pty_proc_win.h
      pty_proc.h
      shell.c
      shell.h
      signal.c
      signal.h
      stdpaths_defs.h
      stdpaths.c
      time_defs.h
      time.c
      time.h
      unix_defs.h
      users.c
      win_defs.h
    po/
      af.po
      ca.po
      check.vim
      cleanup.vim
      cs.cp1250.po
      cs.po
      da.po
      de.po
      en_GB.po
      eo.po
      es.po
      fi.po
      fixfilenames.vim
      fr.po
      ga.po
      it.po
      ja.euc-jp.po
      ja.po
      ko.UTF-8.po
      nb.po
      nl.po
      no.po
      pl.UTF-8.po
      pt_BR.po
      ru.po
      sk.cp1250.po
      sk.po
      sr.po
      sv.po
      tr.po
      uk.po
      vi.po
      zh_CN.UTF-8.po
      zh_TW.UTF-8.po
    tui/
      termkey/
        driver-csi.c
        driver-csi.h
        driver-ti.c
        driver-ti.h
        README
        termkey_defs.h
        termkey-internal.h
        termkey.c
        termkey.h
      input_defs.h
      input.c
      input.h
      termdef_field_defs.h
      terminfo_builtin.h
      terminfo_defs.h
      terminfo_enum_defs.h
      terminfo.c
      terminfo.h
      tui_defs.h
      tui.c
      tui.h
      ugrid.c
      ugrid.h
    viml/
      parser/
        expressions.c
        expressions.h
        parser_defs.h
        parser.c
        parser.h
    vterm/
      encoding.c
      encoding.h
      keyboard.c
      keyboard.h
      LICENSE
      mouse.c
      mouse.h
      parser.c
      parser.h
      pen.c
      pen.h
      README.md
      screen.c
      screen.h
      state.c
      state.h
      vterm_defs.h
      vterm_internal_defs.h
      vterm_keycodes_defs.h
      vterm.c
      vterm.h
    arabic.c
    arabic.h
    arglist_defs.h
    arglist.c
    arglist.h
    ascii_defs.h
    assert_defs.h
    auevents.lua
    autocmd_defs.h
    autocmd.c
    autocmd.h
    base64.c
    base64.h
    buffer_defs.h
    buffer_updates.c
    buffer_updates.h
    buffer.c
    buffer.h
    bufwrite.c
    bufwrite.h
    change.c
    change.h
    channel_defs.h
    channel.c
    channel.h
    charset.c
    charset.h
    clipboard.c
    clipboard.h
    cmdexpand_defs.h
    cmdexpand.c
    cmdexpand.h
    cmdhist.c
    cmdhist.h
    context_defs.h
    context.c
    context.h
    cursor_shape.c
    cursor_shape.h
    cursor.c
    cursor.h
    debugger.c
    debugger.h
    decoration_defs.h
    decoration_provider.c
    decoration_provider.h
    decoration.c
    decoration.h
    dialog.c
    dialog.h
    diff.c
    diff.h
    digraph.c
    digraph.h
    drawline.c
    drawline.h
    drawscreen.c
    drawscreen.h
    errors.h
    eval_defs.h
    eval.c
    eval.h
    eval.lua
    ex_cmds_defs.h
    ex_cmds.c
    ex_cmds.h
    ex_cmds.lua
    ex_cmds2.c
    ex_cmds2.h
    ex_docmd.c
    ex_docmd.h
    ex_eval_defs.h
    ex_eval.c
    ex_eval.h
    ex_getln_defs.h
    ex_getln.c
    ex_getln.h
    ex_session.c
    ex_session.h
    extmark_defs.h
    extmark.c
    extmark.h
    file_search.c
    file_search.h
    fileio.c
    fileio.h
    fold_defs.h
    fold.c
    fold.h
    func_attr.h
    fuzzy.c
    fuzzy.h
    garray_defs.h
    garray.c
    garray.h
    gettext_defs.h
    globals.h
    grid_defs.h
    grid.c
    grid.h
    hashtab_defs.h
    hashtab.c
    hashtab.h
    help.c
    help.h
    highlight_defs.h
    highlight_group.c
    highlight_group.h
    highlight.c
    highlight.h
    iconv_defs.h
    indent_c.c
    indent_c.h
    indent.c
    indent.h
    input_cmdatom_defs.h
    input_cmdatom.c
    input_cmdatom.h
    input_defs.h
    input.c
    input.h
    insert_defs.h
    insert.c
    insert.h
    insexpand.c
    insexpand.h
    keycodes_defs.h
    keycodes.c
    keycodes.h
    keycodes.lua
    linematch.c
    linematch.h
    log.c
    log.h
    macros_defs.h
    main.c
    main.h
    map_defs.h
    map_glyph_cache.c
    map_key_impl.c.h
    map_value_impl.c.h
    map.c
    mapping_defs.h
    mapping.c
    mapping.h
    mark_defs.h
    mark.c
    mark.h
    marktree_defs.h
    marktree.c
    marktree.h
    match.c
    match.h
    math.c
    math.h
    mbyte_defs.h
    mbyte.c
    mbyte.h
    mcursor.c
    mcursor.h
    memfile_defs.h
    memfile.c
    memfile.h
    memline_defs.h
    memline.c
    memline.h
    memory_defs.h
    memory.c
    memory.h
    menu_defs.h
    menu.c
    menu.h
    message_defs.h
    message.c
    message.h
    mouse.c
    mouse.h
    move.c
    move.h
    normal_defs.h
    normal.c
    normal.h
    ops.c
    ops.h
    option_defs.h
    option_vars.h
    option.c
    option.h
    options.lua
    optionstr.c
    optionstr.h
    path.c
    path.h
    plines.c
    plines.h
    popupmenu.c
    popupmenu.h
    pos_defs.h
    profile.c
    profile.h
    quickfix.c
    quickfix.h
    README.md
    regexp_defs.h
    regexp.c
    regexp.h
    register_defs.h
    register.c
    register.h
    runtime_defs.h
    runtime.c
    runtime.h
    search_defs.h
    search.c
    search.h
    sha256.c
    sha256.h
    shada.c
    shada.h
    sign_defs.h
    sign.c
    sign.h
    spell_defs.h
    spell.c
    spell.h
    spellfile.c
    spellfile.h
    spellsuggest.c
    spellsuggest.h
    state_defs.h
    state.c
    state.h
    statusline_defs.h
    statusline.c
    statusline.h
    strings.c
    strings.h
    syntax_defs.h
    syntax.c
    syntax.h
    tag.c
    tag.h
    terminal.c
    terminal.h
    testing.c
    testing.h
    textformat.c
    textformat.h
    textobject.c
    textobject.h
    types_defs.h
    ui_client.c
    ui_client.h
    ui_compositor.c
    ui_compositor.h
    ui_defs.h
    ui.c
    ui.h
    undo_defs.h
    undo.c
    undo.h
    usercmd.c
    usercmd.h
    version.c
    version.h
    vim_defs.h
    vvars.lua
    window_defs.h
    window.c
    window.h
    winfloat.c
    winfloat.h
  tee/
    tee.c
  wasm/
    app.js
    index.html
    msgpack.js
    msgpackrpc.js
    nvim-worker.js
    rpc.js
    serve.py
    wasm_stubs.c
  .valgrind.supp
  bit.c
  bit.h
  build_lua.zig
  clint.lua
  coverity-model.c
  lint.zig
  nlua0.c
  nlua0.zig
  static_ts_registry.c
  uncrustify.cfg
.emmyrc.json
.luacheckrc
.luacov
.luarc.json
.stylua.toml
.stylua2.toml
AGENTS.md
BSDmakefile
BUILD.md
build.zig
build.zig.zon
CMakePresets.json
CONTRIBUTING.md
INSTALL.md
LICENSE.txt
MAINTAIN.md
Makefile
README.md
</directory_structure>

<files>
This section contains the contents of the repository's files.

<file path="contrib/gdb/neovim_gdb.vim">
sign define GdbBreakpoint text=●
sign define GdbCurrentLine text=⇒


let s:gdb_port = 7778
let s:run_gdb = "gdb -q -f build/bin/nvim"
let s:breakpoints = {}
let s:max_breakpoint_sign_id = 0


let s:GdbServer = {}


function s:GdbServer.new(gdb)
  let this = copy(self)
  let this._gdb = a:gdb
  return this
endfunction


function s:GdbServer.on_exit()
  let self._gdb._server_exited = 1
endfunction


let s:GdbPaused = vimexpect#State([
      \ ['Continuing.', 'continue'],
      \ ['\v[\o32]{2}([^:]+):(\d+):\d+', 'jump'],
      \ ['Remote communication error.  Target disconnected.:', 'retry'],
      \ ])
... (317 lines truncated)
</file>

<file path="contrib/gdb/nvim-gdb-pretty-printers.py">
SGR0 = '\x1b(B\x1b[m'
⋮----
def get_color_code(bg, color_num)
⋮----
prefix = 3
⋮----
prefix = 9
⋮----
prefix = '48;5;' if bg else '38;5;'
⋮----
def highlight(attrs)
⋮----
rv = [SGR0]
⋮----
class UGridPrinter(object)
⋮----
def __init__(self, val)
⋮----
def to_string(self)
⋮----
do_hl = (os.getenv('NVIM_GDB_HIGHLIGHT_UGRID') and
grid = self.val
height = int(grid['height'])
width = int(grid['width'])
delimiter = '-' * (width + 2)
rows = [delimiter]
⋮----
cols = []
⋮----
curhl = None
... (13 lines truncated)
</file>

<file path="contrib/asan.sh">
shopt -s nullglob
root_path=$(git rev-parse --show-toplevel)
log_path=$(mktemp -d)
export CC='clang'
export ASAN_OPTIONS="detect_leaks=0:log_path=$log_path/asan"
make -C "$root_path" CMAKE_EXTRA_FLAGS="-DENABLE_ASAN_UBSAN=ON"
VIMRUNTIME="$root_path"/runtime "$root_path"/build/bin/nvim
tput reset
for i in "$log_path"/*; do
  cat "$i"
done
</file>

<file path="contrib/local.mk.example">
# Copy this to 'local.mk' in the repository root.
# Individual entries must be uncommented to take effect.

# By default, the installation prefix is '/usr/local'.
# CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=/usr/local/nvim-latest

# These CFLAGS can be used in addition to those specified in CMakeLists.txt:
# CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-ftrapv -Wlogical-op"

# To turn compiler warnings into errors:
# CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -Werror"

# Sets the build type; defaults to Debug. Valid values:
#
# - Debug:          Disables optimizations (-O0), enables debug information.
#
# - RelWithDebInfo: Enables optimizations (-O2) with debug information.
#
# - MinSizeRel:     Enables all -O2 optimization that do not typically
#                   increase code size, and performs further optimizations
#                   designed to reduce code size (-Os).
#                   Disables debug information.
#
# - Release:        Same as RelWithDebInfo, but disables debug information.
#
# CMAKE_BUILD_TYPE := Debug

# With non-Debug builds interprocedural optimization (IPO) (which includes
# link-time optimization (LTO)) is enabled by default, which causes the link
# step to take a significant amount of time, which is relevant when building
... (29 lines truncated)
</file>

<file path="contrib/minimal.lua">
-- Run this file as `nvim --clean -u minimal.lua`

for name, url in pairs {
  -- ADD PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE, e.g:
  -- 'https://github.com/author1/plugin1',
  -- 'https://github.com/author2/plugin2',
} do
  local install_path = vim.fn.fnamemodify('nvim_issue/' .. name, ':p')
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.opt.runtimepath:append(install_path)
end

-- ADD INIT.LUA SETTINGS _NECESSARY_ FOR REPRODUCING THE ISSUE
</file>

<file path="contrib/nvim.bash">
#!/usr/bin/env bash

# Provides bash completion for "nvim".

if [[ -n ${BASH_COMPLETION_VERSINFO[*]} ]] \
  && ((BASH_COMPLETION_VERSINFO[0] > 2 || (\
  BASH_COMPLETION_VERSINFO[0] == 2 && BASH_COMPLETION_VERSINFO[1] >= 12))); then
  # use bash-completion >= 2.12
  _comp_nvim() {
    local cur prev words cword
    _comp_initialize -n : -- "$@" || return

    case "$prev" in
      --listen | --server)
        _comp_compgen_filedir

        if [[ "$cur" != /* ]]; then
          _comp_compgen_ip_addresses -a
          compopt -o nospace
        fi

        return
        ;;
    esac

    if [[ "$cur" =~ ^- ]]; then
      # Infers args from "nvim --help".
      _comp_compgen_help
      _comp_compgen -a -- -W "-c -Es -v -h"

... (76 lines truncated)
</file>

<file path="contrib/test_wasm.html">
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>nvim.wasm runtime + persistence test</title></head>
<body style="font-family: monospace; white-space: pre-wrap">
<h3>nvim.wasm runtime bundling</h3>
<button id="persistBtn">Persist now</button>
<script src="../zig-out/bin/nvim.js"></script>
<script>
const log = (msg) => document.body.append(msg + "\n");
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const ok = (label, cond, hint) => label + (cond ? "  OK" : "  FAIL" + (hint ? " " + hint : ""));
// Builds a C-style argv array in wasm memory for _nvim_main
function makeArgv(M, args) {
  const ptrs = args.map(s => {
    const len = M.lengthBytesUTF8(s) + 1, p = M._malloc(len);
    M.stringToUTF8(s, p, len);
    return p;
  });
  const argv = M._malloc((ptrs.length + 1) * 4);
  ptrs.forEach((p, i) => M.setValue(argv + i * 4, p, '*'));
  M.setValue(argv + ptrs.length * 4, 0, '*');
  return { argc: ptrs.length, argv };
}
// Test only helper. Runs the WASM nvim build headlessly with a scripted
// set of -c commands, by calling its exported _nvim_main directly
async function runNvimCommands(m, cmds, opts = {}) {
  const args = ["nvim", "--headless", ...(opts.noPlugin ? ["-u", "NONE"] : []), ...(opts.extraArgs ?? [])];
  cmds.forEach(c => args.push("-c", c));
  const { argc, argv } = makeArgv(m, args);
  const ret = m._nvim_main(argc, argv);
... (159 lines truncated)
</file>

<file path="runtime/compiler/ant.vim">
" Vim Compiler File
" Compiler:	ant
" Maintainer:	Johannes Zellner <johannes@zellner.org>
" Last Change:	Mi, 13 Apr 2005 22:50:07 CEST
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
    finish
endif
let current_compiler = "ant"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=ant

" first  line:
"     ant with jikes +E, which assumes  the following
"     two property lines in your 'build.xml':
"
"         <property name = "build.compiler"       value = "jikes"/>
"         <property name = "build.compiler.emacs" value = "true"/>
"
" second line:
"     ant with javac
"
" note that this will work also for tasks like [wtkbuild]
"
CompilerSet errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
    \%A\ %#[%.%#]\ %f:%l:\ %m,%-Z\ %#[%.%#]\ %p^,%C\ %#[%.%#]\ %#%m
... (6 lines truncated)
</file>

<file path="runtime/compiler/bash.vim">
" Vim compiler file
" Compiler:     Bash Syntax Checker
" Maintainer:   @konfekt
" Last Change:  2024 Dec 27

if exists("current_compiler")
   finish
endif
let current_compiler = "bash"

CompilerSet makeprg=bash\ -n
CompilerSet errorformat=%f:\ line\ %l:\ %m
</file>

<file path="runtime/compiler/bcc.vim">
" Vim compiler file
" Compiler:		bcc - Borland C
" Maintainer:	Emile van Raaij (eraaij@xs4all.nl)
" Last Change:	2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "bcc"

" A workable errorformat for Borland C
CompilerSet errorformat=%*[^0-9]%n\ %f\ %l:\ %m

" default make
CompilerSet makeprg=make
</file>

<file path="runtime/compiler/bdf.vim">
" Vim compiler file
" Compiler:             BDF to PCF Conversion
" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>
" Contributors:         Enno Nagel
" Last Change:          2024 Mar 29
"                       2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "bdf"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=bdftopcf\ $*
CompilerSet errorformat=%ABDF\ %trror\ on\ line\ %l:\ %m,
      \%-Z%p^,
      \%Cbdftopcf:\ bdf\ input\\,\ %f\\,\ corrupt,
      \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/bean_check.vim">
" Vim compiler file
" Compiler: bean-check
" Maintainer: Nathan Grigg
" Latest Revision: 2017-03-20

if exists('g:current_compiler')
    finish
endif
let g:current_compiler = 'bean_check'

let s:cpo_save = &cpoptions
set cpoptions-=C

CompilerSet makeprg=bean-check\ %
" File:line: message
" Skip blank lines and indented lines.
CompilerSet errorformat=%-G
CompilerSet errorformat+=%f:%l:\ %m
CompilerSet errorformat+=%-G\ %.%#

let &cpoptions = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/biome.vim">
" Vim compiler file
" Compiler:     Biome (= linter for JavaScript, TypeScript, JSX, TSX, JSON,
"               JSONC, HTML, Vue, Svelte, Astro, CSS, GraphQL and GritQL files)
" Maintainer:   @Konfekt
" Last Change:  2025 Nov 12
if exists("current_compiler") | finish | endif
let current_compiler = "biome"

let s:cpo_save = &cpo
set cpo&vim

exe 'CompilerSet makeprg=' .. escape('biome check --linter-enabled=true --formatter-enabled=false --assist-enabled=false --reporter=github '
      \ .. get(b:, 'biome_makeprg_params', get(g:, 'biome_makeprg_params', '')), ' \|"')

CompilerSet errorformat=::%trror%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m
CompilerSet errorformat+=::%tarning%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m
CompilerSet errorformat+=::%totice%.%#file=%f\\,line=%l\\,%.%#col=%c\\,%.%#::%m
CompilerSet errorformat+=%-G\\s%#
CompilerSet errorformat+=%-Gcheck\ %.%#
CompilerSet errorformat+=%-G%.%#Some\ errors\ were\ emitted\ while\ running\ checks%.

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/cabal.vim">
" Vim compiler file
" Compiler: Haskell Cabal Build file
" Maintainer: Mateo Gjika <@mateoxh>

if exists('current_compiler')
  finish
endif

let current_compiler = 'cabal'

let s:save_cpo = &cpo
set cpo&vim

CompilerSet makeprg=cabal\ build

CompilerSet errorformat=
      \%W%f:(%l\\,%c)-(%e\\,%k):\ %tarning:\ [%.%#],
      \%W%f:(%l\\,%c)-(%e\\,%k):\ %tarning:%m,
      \%W%f:(%l\\,%c)-(%e\\,%k):\ %tarning:,
      \%W%f:%l:%c-%k:\ %tarning:\ [%.%#],
      \%W%f:%l:%c-%k:\ %tarning:%m,
      \%W%f:%l:%c-%k:\ %tarning:,
      \%W%f:%l:%c:\ %tarning:\ [%.%#],
      \%W%f:%l:%c:\ %tarning:%m,
      \%W%f:%l:%c:\ %tarning:,
      \%E%f:(%l\\,%c)-(%e\\,%k):\ %trror:\ [%.%#],
      \%E%f:(%l\\,%c)-(%e\\,%k):\ %trror:%m,
      \%E%f:(%l\\,%c)-(%e\\,%k):\ %trror:,
      \%E%f:%l:%c-%k:\ %trror:\ [%.%#],
      \%E%f:%l:%c-%k:\ %trror:%m,
... (11 lines truncated)
</file>

<file path="runtime/compiler/cargo.vim">
" Vim compiler file
" Compiler:         Cargo Compiler
" Maintainer:       Damien Radtke <damienradtke@gmail.com>
" Latest Revision:  2023-09-11
"                   2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim

if exists('current_compiler')
    finish
endif
runtime compiler/rustc.vim
let current_compiler = "cargo"

" vint: -ProhibitAbbreviationOption
let s:save_cpo = &cpo
set cpo&vim
" vint: +ProhibitAbbreviationOption

if exists('g:cargo_makeprg_params')
    execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' \|"').'\ $*'
else
    CompilerSet makeprg=cargo\ $*
endif

augroup RustCargoQuickFixHooks
    autocmd!
    autocmd QuickFixCmdPre make call cargo#quickfix#CmdPre()
    autocmd QuickFixCmdPost make call cargo#quickfix#CmdPost()
augroup END

... (19 lines truncated)
</file>

<file path="runtime/compiler/checkstyle.vim">
" Vim compiler file
" Compiler:	Checkstyle
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "checkstyle"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain\ -c\ /sun_checks.xml
" CompilerSet makeprg=java\ -jar\ checkstyle-X.XX-all.jar\ -f\ plain\ -c\ /sun_checks.xml

CompilerSet makeprg=checkstyle\ -f\ plain
CompilerSet errorformat=[%tRROR]\ %f:%l:%v:\ %m,
		       \[%tARN]\ %f:%l:%v:\ %m,
		       \[%tRROR]\ %f:%l:\ %m,
		       \[%tARN]\ %f:%l:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/cm3.vim">
" Vim compiler file
" Compiler:	Critical Mass Modula-3 Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "cm3"

let s:cpo_save = &cpo
set cpo&vim

" TODO: better handling of Quake errors
CompilerSet makeprg=cm3
CompilerSet errorformat=%D---\ building\ in\ %f\ ---,
		       \%W\"%f\"\\,\ line\ %l:\ warning:\ %m,
		       \%E\"%f\"\\,\ line\ %l:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/context.vim">
" Vim compiler file
" Compiler:     ConTeXt typesetting engine
" Maintainer:   Nicola Vitacolonna <nvitacolonna@gmail.com>
" Last Change:  2016 Oct 21

if exists("current_compiler")
  finish
endif
let s:keepcpo= &cpo
set cpo&vim

" If makefile exists and we are not asked to ignore it, we use standard make
" (do not redefine makeprg)
if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||
      \ (!filereadable('Makefile') && !filereadable('makefile'))
  let current_compiler = 'context'
  " The following assumes that the current working directory is set to the
  " directory of the file to be typeset
  let s:makeprg = get(b:, 'context_mtxrun', get(g:, 'context_mtxrun', 'mtxrun'))
        \ . ' --script context --autogenerate --nonstopmode --synctex='
        \ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0')
        \ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', ''))
        \ . ' ' . shellescape(expand('%:p:t'))
  " CompilerSet makeprg=context
  execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' ')
else
  let current_compiler = 'make'
endif

let b:context_errorformat = ''
... (23 lines truncated)
</file>

<file path="runtime/compiler/cppcheck.vim">
" vim compiler file
" Compiler:	cppcheck (C++ static checker)
" Maintainer:   Vincent B. (twinside@free.fr)
" Last Change:  2025 Nov 06 by @Konfekt

if exists("current_compiler") | finish | endif
let current_compiler = "cppcheck"

let s:cpo_save = &cpo
set cpo&vim

let s:slash = has('win32')? '\' : '/'

if !exists('g:c_cppcheck_params')
  let g:c_cppcheck_params = '--verbose --force --inline-suppr'
        \ ..' '..'--enable=warning,style,performance,portability,information,missingInclude'
        \ ..' '..(executable('getconf') ? '-j' .. systemlist('getconf _NPROCESSORS_ONLN')[0] : '')
  let s:undo_compiler = 'unlet! g:c_cppcheck_params'
endif

exe 'CompilerSet makeprg=' .. escape('cppcheck --quiet'
      \ ..' --template="{file}:{line}:{column}: {severity}: [{id}] {message} {callstack}"'
      \ ..' '..get(b:, 'c_cppcheck_params', get(g:, 'c_cppcheck_params', (&filetype ==# 'cpp' ? ' --language=c++' : '')))
      \ ..' '..get(b:, 'c_cppcheck_includes', get(g:, 'c_cppcheck_includes',
      \	          (filereadable('compile_commands.json') ? '--project=compile_commands.json' :
      \           (!empty(glob('*'..s:slash..'compile_commands.json', 1, 1)) ? '--project='..glob('*'..s:slash..'compile_commands.json', 1, 1)[0] :
      \	          (empty(&path) ? '' : '-I')..join(map(filter(split(&path, ','), 'isdirectory(v:val)'),'shellescape(v:val)'), ' -I'))))),
      \ ' \|"')

CompilerSet errorformat=
... (11 lines truncated)
</file>

<file path="runtime/compiler/cs.vim">
" Vim compiler file
" Compiler:               Microsoft Visual Studio C#
" Maintainer:             Yichao Zhou (broken.zhou@gmail.com)
" Previous Maintainer:    Joseph H. Yao (hyao@sina.com)
" Last Change:            Jul 22, 2019
"                         2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "cs"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat&
CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
            \%trror%*[^:]:\ %m,
            \%tarning%*[^:]:\ %m

CompilerSet makeprg=csc\ %:S

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/csslint.vim">
" Vim compiler file
" Compiler:	csslint for CSS
" Maintainer:	Daniel Moch <daniel@danielmoch.com>
" Last Change:	2016 May 21
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "csslint"

CompilerSet makeprg=csslint\ --format=compact
CompilerSet errorformat=%-G,%-G%f:\ lint\ free!,%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %m
</file>

<file path="runtime/compiler/cucumber.vim">
" Vim compiler file
" Compiler:	Cucumber
" Maintainer:	Tim Pope <vimNOSPAM@tpope.org>
" Last Change:	2016 Aug 29
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "cucumber"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=cucumber

CompilerSet errorformat=
      \%W%m\ (Cucumber::Undefined),
      \%E%m\ (%\\S%#),
      \%Z%f:%l,
      \%Z%f:%l:%.%#

let &cpo = s:cpo_save
unlet s:cpo_save

" vim:set sw=2 sts=2:
</file>

<file path="runtime/compiler/dart.vim">
" Vim compiler file
" Compiler:	Dart VM
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dart"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=dart\ run
CompilerSet errorformat=%E%f:%l:%c:\ Error:\ %m,
		       \%CTry\ %.%#,
		       \%Z\ %#^%\\+,
		       \%C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/dart2js.vim">
" Vim compiler file
" Compiler:	Dart to JavaScript Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dart2js"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=dart\ compile\ js
CompilerSet errorformat=%E%f:%l:%c:,
		       \%-GError:\ Compilation\ failed.,
		       \%CError:\ %m,
		       \%Z\ %#^%\\+,
		       \%C%.%#,
		       \%trror:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/dart2native.vim">
" Vim compiler file
" Compiler:	Dart to Native Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dart2native"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=dart\ compile\ exe
CompilerSet errorformat=%E%f:%l:%c:\ Error:\ %m,
		       \%CTry\ %.%#,
		       \%Z\ %#^%\\+,
		       \%Z%$,
		       \%C%.%#,
		       \%E%f:\ %trror:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/dartanalyser.vim">
" Vim compiler file
" Compiler:	Dart Analyzer
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dartanalyzer"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=dart\ analyze\ --format\ machine
CompilerSet errorformat=%t%\\w%\\+\|%\\w%\\+\|%\\w%\\+\|%f\|%l\|%c\|%\\d%\\+\|%m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/dartdevc.vim">
" Vim compiler file
" Compiler:	Dart Development Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dartdevc"

let s:cpo_save = &cpo
set cpo&vim

" DEPRECATED: discontinued as of Dart 2.18 (remove in release after Vim 9.2)
CompilerSet makeprg=dartdevc
CompilerSet errorformat=%E%f:%l:%c:\ Error:\ %m,
		       \%CTry\ %.%#,
		       \%Z\ %#^%\\+,
		       \%Z%$,
		       \%C%.%#,
		       \%E%f:\ %trror:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/dartdoc.vim">
" Vim compiler file
" Compiler:	Dart Documentation Generator
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dartdoc"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=dart\ doc
CompilerSet errorformat=\ \ %tarning:\ %m,
		       \\ \ %trror:\ %m,
		       \%+EGeneration\ failed:\ %m,
		       \%+ISuccess!\ Docs\ generated\ into\ %f,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/dartfmt.vim">
" Vim compiler file
" Compiler:	Dart Formatter
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2026 Aug 04

if exists("current_compiler")
  finish
endif
let current_compiler = "dartfmt"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=dart\ format
CompilerSet errorformat=%Eline\ %l\\,\ column\ %c\ of\ %f:\ %m,
		       \%Z\ %\\{3}│\ %\\+^%\\+,
		       \%C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/decada.vim">
"------------------------------------------------------------------------------
"  Description: Vim Ada/Dec Ada compiler file
"     Language: Ada (Dec Ada)
"          $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $
"    Copyright: Copyright (C) 2006 Martin Krischik
"   Maintainer:	Martin Krischik <krischik@users.sourceforge.net>
"      $Author: krischik $
"        $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
"      Version: 4.6
"    $Revision: 887 $
"     $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/decada.vim $
"      History: 21.07.2006 MK New Dec Ada
"               15.10.2006 MK Bram's suggestion for runtime integration
"               08.09.2006 MK Correct double load protection.
"    Help Page: compiler-decada
"------------------------------------------------------------------------------
" Last Change:	2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if (exists("current_compiler") && current_compiler == "decada") || version < 700
   finish
endif
let s:keepcpo= &cpo
set cpo&vim

let current_compiler = "decada"

if !exists("g:decada")
   let g:decada = decada#New ()

   call ada#Map_Menu (
... (23 lines truncated)
</file>

<file path="runtime/compiler/dot.vim">
" Vim compiler file
" Compiler:     ATT dot
" Maintainer:	Marcos Macedo <bar4ka@bol.com.br>
" Last Change:	2024 March 21
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "dot"

CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
" matches error messages as below skipping final part after line number
" Error: ./file.dot: syntax error in line 1 near 'rankdir'
CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%#
</file>

<file path="runtime/compiler/dotnet.vim">
" Vim compiler file
" Compiler:            dotnet build (.NET CLI)
" Maintainer:          Nick Jensen <nickspoon@gmail.com>
" Last Change:         2022-12-06
"                      2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" License:             Vim (see :h license)
" Repository:          https://github.com/nickspoons/vim-cs

if exists("current_compiler")
  finish
endif
let current_compiler = "dotnet"

let s:cpo_save = &cpo
set cpo&vim

if get(g:, "dotnet_errors_only", v:false)
  CompilerSet makeprg=dotnet\ build\ -nologo
		     \\ -consoleloggerparameters:NoSummary
		     \\ -consoleloggerparameters:ErrorsOnly
else
  CompilerSet makeprg=dotnet\ build\ -nologo\ -consoleloggerparameters:NoSummary
endif

if get(g:, "dotnet_show_project_file", v:true)
  CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m,
			 \%W%f(%l\\,%c):\ %tarning\ %m,
			 \%-G%.%#
else
  CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m\ [%.%#],
... (7 lines truncated)
</file>

<file path="runtime/compiler/erlang.vim">
" Vim compiler file
" Compiler:     Erlang
" Maintainer:	Dmitry Vasiliev <dima at hlabs dot org>
" Last Change:	2019 Jul 23
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "erlang"

CompilerSet makeprg=erlc\ -Wall\ %:S

CompilerSet errorformat=%f:%l:\ %m
</file>

<file path="runtime/compiler/eruby.vim">
" Vim compiler file
" Language:		eRuby
" Maintainer:		Doug Kearns <dougkearns@gmail.com>
" URL:			https://github.com/vim-ruby/vim-ruby
" Last Change:		2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "eruby"

let s:cpo_save = &cpo
set cpo-=C

if exists("eruby_compiler") && eruby_compiler == "eruby"
  CompilerSet makeprg=eruby
else
  CompilerSet makeprg=erb
endif

CompilerSet errorformat=
    \eruby:\ %f:%l:%m,
    \%+E%f:%l:\ parse\ error,
    \%W%f:%l:\ warning:\ %m,
    \%E%f:%l:in\ %*[^:]:\ %m,
    \%E%f:%l:\ %m,
    \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
    \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
    \%-Z%p^,
    \%-G%.%#
... (6 lines truncated)
</file>

<file path="runtime/compiler/eslint.vim">
" Vim compiler file
" Compiler:    ESLint for JavaScript
" Maintainer:  Romain Lafourcade <romainlafourcade@gmail.com>
" Last Change: 2024 Nov 30

if exists("current_compiler")
  finish
endif
let current_compiler = "eslint"

CompilerSet makeprg=npx\ eslint\ --format\ stylish
CompilerSet errorformat=%-P%f,\%\\s%#%l:%c\ %#\ %trror\ \ %m,\%\\s%#%l:%c\ %#\ %tarning\ \ %m,\%-Q,\%-G%.%#,
</file>

<file path="runtime/compiler/fbc.vim">
" Vim compiler file
" Compiler:	FreeBASIC Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "fbc"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=fbc
CompilerSet errorformat=%-G%.%#Too\ many\ errors\\,\ exiting,
		       \%f(%l)\ %tarning\ %n(%\\d%\\+):\ %m,
                       \%E%f(%l)\ error\ %n:\ %m,
		       \%-Z%p^,
		       \%-C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/fortran_cv.vim">
" Vim compiler file
" Compiler:	Compaq Visual Fortran
" Maintainer:	Joh.-G. Simon (johann-guenter.simon@linde-le.com)
" Last Change:	11/05/2002
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "fortran_cv"

let s:cposet = &cpoptions
set cpoptions-=C

" A workable errorformat for Compaq Visual Fortran
CompilerSet errorformat=
		\%E%f(%l)\ :\ Error:%m,
		\%W%f(%l)\ :\ Warning:%m,
		\%-Z%p%^%.%#,
		\%-G%.%#,
" Compiler call
CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ %:S
" Visual fortran defaults to printing output on stderr
" Adjust option shellpipe accordingly

let &cpoptions = s:cposet
unlet s:cposet
</file>

<file path="runtime/compiler/fortran_elf90.vim">
" Vim compiler file
" Compiler:	Essential Lahey Fortran 90
"		Probably also works for Lahey Fortran 90
" URL:		http://www.unb.ca/chem/ajit/compiler/fortran_elf90.vim
" Maintainer:	Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
" Version:	0.2
" Last Change:	2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "fortran_elf90"

let s:cposet=&cpoptions
set cpoptions-=C

CompilerSet errorformat=\%ALine\ %l\\,\ file\ %f,
      \%C%tARNING\ --%m,
      \%C%tATAL\ --%m,
      \%C%tBORT\ --%m,
      \%+C%\\l%.%#\.,
      \%C%p\|,
      \%C%.%#,
      \%Z%$,
      \%-G%.%#
CompilerSet makeprg=elf90

let &cpoptions=s:cposet
unlet s:cposet
... (1 lines truncated)
</file>

<file path="runtime/compiler/fortran_F.vim">
" Vim compiler file
" Compiler:	Fortran Company/NAGWare F compiler
" URL:		http://www.unb.ca/chem/ajit/compiler/fortran_F.vim
" Maintainer:	Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
" Version:	0.2
" Last Change:	2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "fortran_F"

let s:cposet=&cpoptions
set cpoptions-=C

CompilerSet errorformat=%trror:\ %f\\,\ line\ %l:%m,
      \%tarning:\ %f\\,\ line\ %l:%m,
      \%tatal\ Error:\ %f\\,\ line\ %l:%m,
      \%-G%.%#
CompilerSet makeprg=F

let &cpoptions=s:cposet
unlet s:cposet
</file>

<file path="runtime/compiler/fortran_g77.vim">
" Vim compiler file
" Compiler:     g77 (GNU Fortran)
" Maintainer:   Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
" Last Change:  $Date: 2004/06/13 18:17:36 $
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" $Revision: 1.1 $

if exists("current_compiler")
  finish
endif
let current_compiler = "fortran_g77"

let s:cpo_save = &cpo
set cpo-=C

" Note: The errorformat assumes GNU make

" sample multiline errors (besides gcc backend one-liners):
" gev.f:14:
"	   parameter UPLO = 'Upper-triangle'
"	   ^
" Unsupported VXT statement at (^)
" gev.f:6:
"	   integer	   desca( * ), descb( * )
"			   1
" gev.f:19: (continued):
"	   end subroutine
"	   2
" Invalid declaration of or reference to symbol `desca' at (2) [initially seen at (1)]

... (16 lines truncated)
</file>

<file path="runtime/compiler/fortran_lf95.vim">
" Vim compiler file
" Compiler:	Lahey/Fujitsu Fortran 95
" URL:		http://www.unb.ca/chem/ajit/compiler/fortran_lf95.vim
" Maintainer:	Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
" Version:	0.2
" Last Change:	2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "fortran_lf95"

let s:cposet=&cpoptions
set cpoptions-=C

CompilerSet errorformat=\ %#%n-%t:\ \"%f\"\\,\ line\ %l:%m,
      \Error\ LINK\.%n:%m,
      \Warning\ LINK\.%n:%m,
      \%-G%.%#
CompilerSet makeprg=lf95

let &cpoptions=s:cposet
unlet s:cposet
</file>

<file path="runtime/compiler/fpc.vim">
" Vim compiler file
" Compiler:     FPC 2.1
" Maintainer:   Jaroslaw Blasiok <jaro3000@o2.pl>
" Last Change:  2005 October 07
"               2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "fpc"

" NOTE: compiler must be run with -vb to write whole source path, not only file
" name.
CompilerSet errorformat=%f(%l\\,%c)\ %m
</file>

<file path="runtime/compiler/g95.vim">
" Compiler: G95
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3
" Last Change: 2012 Apr 30
"              2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" Homepage: http://www.vim.org/scripts/script.php?script_id=3492
"           https://bitbucket.org/xuhdev/compiler-g95.vim
" License: Same as Vim

if exists('current_compiler')
    finish
endif
let current_compiler = 'g95'
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=
            \%AIn\ file\ %f:%l,
            \%-C%p1,
            \%-Z%trror:\ %m,
            \%-Z%tarning\ (%n):\ %m,
            \%-C%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/gawk.vim">
" Vim compiler file
" Compiler:	GNU Awk
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "gawk"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=gawk
CompilerSet errorformat=%Z%.awk:\ %f:%l:\ %p^\ %m,
		       \%Eg%\\=awk:\ %f:%l:\ fatal:\ %m,
		       \%Egawk:\ %f:%l:\ error:\ %m,
		       \%Wgawk:\ %f:%l:\ warning:\ %m,
		       \%Egawk:\ %f:%l:\ %.%#,
		       \gawk:\ %f:%l:\ %tatal:\ %m,
		       \gawk:\ %f:%l:\ %trror:\ %m,
		       \gawk:\ %f:%l:\ %tarning:\ %m,
		       \gawk:\ %tatal:\ %m,
		       \gawk:\ %trror:\ %m,
		       \gawk:\ %tarning:\ %m,
		       \%+C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
... (1 lines truncated)
</file>

<file path="runtime/compiler/gcc.vim">
" Vim compiler file
" Compiler:		GNU C Compiler
" Previous Maintainer:	Nikolai Weibull <now@bitwi.se>
" Last Change:		2010 Oct 14
"			changed pattern for entering/leaving directories
"			by Daniel Hahler, 2019 Jul 12
"			added line suggested by Anton Lindqvist 2016 Mar 31
"			2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
"			2025 Dec 17 by The Vim Project (correctly parse: 'make: *** [Makefile:2: all] Error 1')
"			2026 May 28 by The Vim Project (Use %v to parse column number)

if exists("current_compiler")
  finish
endif
let current_compiler = "gcc"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet errorformat=
      \make:\ ***\ [%f:%l:\ %m,
      \%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
      \%*[^\"]\"%f\"%*\\D%l:\ %m,
      \\"%f\"%*\\D%l:%c:\ %m,
      \\"%f\"%*\\D%l:\ %m,
      \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
      \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
      \%f:%l:%v:\ %trror:\ %m,
      \%f:%l:%v:\ %tarning:\ %m,
      \%f:%l:%v:\ %m,
... (18 lines truncated)
</file>

<file path="runtime/compiler/gfortran.vim">
" Compiler: GNU Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3
" Last Change: 2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" Homepage: http://www.vim.org/scripts/script.php?script_id=3496
"           https://bitbucket.org/xuhdev/compiler-gfortran.vim
" License: Same as Vim

if exists('current_compiler')
    finish
endif
let current_compiler = 'gfortran'
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=
            \%A%f:%l.%c:,
            \%-Z%trror:\ %m,
            \%-Z%tarning:\ %m,
            \%-C%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/ghc.vim">
" Vim compiler file
" Compiler:         GHC Haskell Compiler
" Maintainer:       Daniel Campoverde <alx@sillybytes.net>
" Latest Revision:  2016-11-29

if exists("current_compiler")
  finish
endif
let current_compiler = "ghc"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet errorformat=
    \%-G%.%#:\ build,
    \%-G%.%#preprocessing\ library\ %.%#,
    \%-G[%.%#]%.%#,
    \%E%f:%l:%c:\ %m,
    \%-G--%.%#

if exists('g:compiler_ghc_ignore_unmatched_lines')
  CompilerSet errorformat+=%-G%.%#
endif

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/gjs.vim">
" Vim compiler file
" Compiler:	GJS (Gnome JavaScript Bindings)
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "gjs"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=gjs
CompilerSet errorformat=%.%#JS\ %tRROR:\ %m\ @\ %f:%c,
		       \%E%.%#JS\ ERROR:\ %m,
		       \%Z@%f:%l:%c,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/gleam_build.vim">
" Vim compiler file
" Language:    Gleam
" Maintainer:  Kirill Morozov <kirill@robotix.pro>
" Based On:    https://github.com/gleam-lang/gleam.vim
" Last Change: 2025 Apr 21

if exists('current_compiler')
  finish
endif
let current_compiler = "gleam_build"

CompilerSet makeprg=gleam\ build

" Example error message:
"
" error: Unknown variable
"    ┌─ /home/michael/root/projects/tutorials/gleam/try/code/src/main.gleam:19:18
"    │
" 19 │   Ok(tuple(name, spot))
"    │                  ^^^^ did you mean `sport`?
"
" The name `spot` is not in scope here.
CompilerSet errorformat=%Eerror:\ %m,%Wwarning:\ %m,%C\ %#┌─%#\ %f:%l:%c\ %#-%#

" vim: sw=2 sts=2 et
</file>

<file path="runtime/compiler/gm2.vim">
" Vim compiler file
" Compiler:	GNU Modula-2 Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "gm2"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=gm2
CompilerSet errorformat=%-G%f:%l:%c:\ error:\ compilation\ failed,
		       \%f:%l:%c:\ %trror:\ %m,
		       \%f:%l:%c:\ %tarning:\ %m,
		       \%f:%l:%c:\ %tote:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/gnat.vim">
"------------------------------------------------------------------------------
"  Description: Vim Ada/GNAT compiler file
"     Language: Ada (GNAT)
"          $Id: gnat.vim 887 2008-07-08 14:29:01Z krischik $
"    Copyright: Copyright (C) 2006 Martin Krischik
"   Maintainer:	Martin Krischi <krischik@users.sourceforge.net>
"		Ned Okie <nokie@radford.edu>
"      $Author: krischik $
"        $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
"      Version: 4.6
"    $Revision: 887 $
"     $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/compiler/gnat.vim $
"      History: 24.05.2006 MK Unified Headers
"		16.07.2006 MK Ada-Mode as vim-ball
"               15.10.2006 MK Bram's suggestion for runtime integration
"		19.09.2007 NO use project file only when there is a project
"    Help Page: compiler-gnat
"------------------------------------------------------------------------------

if (exists("current_compiler")&& current_compiler == "gnat") || version < 700
   finish
endif
let s:keepcpo= &cpo
set cpo&vim

let current_compiler = "gnat"

if !exists("g:gnat")
   let g:gnat = gnat#New ()

... (40 lines truncated)
</file>

<file path="runtime/compiler/go.vim">
" Vim compiler file
" Compiler:	Go
" Maintainer:	David Barnett (https://github.com/google/vim-ft-go)
" Last Change:	2014 Aug 16
"             	2024 Apr 05 by The Vim Project (removed :CompilerSet definition)

if exists('current_compiler')
  finish
endif
let current_compiler = 'go'

let s:save_cpo = &cpo
set cpo-=C

CompilerSet makeprg=go\ build
CompilerSet errorformat=
    \%-G#\ %.%#,
    \%A%f:%l:%c:\ %m,
    \%A%f:%l:\ %m,
    \%C%*\\s%m,
    \%-G%.%#

let &cpo = s:save_cpo
unlet s:save_cpo

" vim: sw=2 sts=2 et
</file>

<file path="runtime/compiler/groff.vim">
" Vim compiler file
" Compiler:     Groff
" Maintainer:   Konfekt
" Last Change:	2024 Nov 19
"
" Expects output file extension, say `:make html` or `:make pdf`.
" Supported devices as of Sept 2024 are: (x)html, pdf, ps, dvi, lj4, lbp ...
" Adjust command-line flags, language, encoding by buffer-local/global variables
" groff_compiler_args, groff_compiler_lang, and groff_compiler_encoding,
" which default to '', &spelllang and 'utf8'.

if exists("current_compiler")
  finish
endif

let s:keepcpo = &cpo
set cpo&vim

let current_compiler = 'groff'

silent! function s:groff_compiler_lang()
  let lang = get(b:, 'groff_compiler_lang',
      \ &spell ? matchstr(&spelllang, '^\a\a') : '')
  if lang ==# 'en' | let lang = '' | endif
  return empty(lang) ? '' : '-m'..lang
endfunction

" Requires output format (= device) to be set by user after :make.
execute 'CompilerSet makeprg=groff'..escape(
    \ ' '..s:groff_compiler_lang()..
... (16 lines truncated)
</file>

<file path="runtime/compiler/haml.vim">
" Vim compiler file
" Compiler:	Haml
" Maintainer:	Tim Pope <vimNOSPAM@tpope.org>
" Last Change:	2016 Aug 29
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "haml"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=haml

CompilerSet errorformat=
      \Haml\ %trror\ on\ line\ %l:\ %m,
      \Syntax\ %trror\ on\ line\ %l:\ %m,
      \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save

" vim:set sw=2 sts=2:
</file>

<file path="runtime/compiler/hare.vim">
" Vim compiler file.
" Compiler:    Hare
" Maintainer:  Amelia Clarke <selene@perilune.dev>
" Last Change: 2024-05-23
" Upstream:    https://git.sr.ht/~sircmpwn/hare.vim

if exists('current_compiler')
  finish
endif
let current_compiler = 'hare'

let s:cpo_save = &cpo
set cpo&vim

if filereadable('Makefile') || filereadable('makefile')
  CompilerSet makeprg=make
else
  CompilerSet makeprg=hare\ build
endif

CompilerSet errorformat=
  \%f:%l:%c:\ syntax\ error:\ %m,
  \%f:%l:%c:\ error:\ %m,
  \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: et sts=2 sw=2 ts=8
</file>

<file path="runtime/compiler/hp_acc.vim">
" Vim compiler file
" Compiler:	HP aCC
" Maintainer:	Matthias Ulrich <matthias-ulrich@web.de>
" URL:          http://www.subhome.de/vim/hp_acc.vim
" Last Change:	2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
"
"  aCC --version says: "HP ANSI C++ B3910B A.03.13"
"  This compiler has been tested on:
"       hp-ux 10.20, hp-ux 11.0 and hp-ux 11.11 (64bit)
"
"  Tim Brown's aCC is: "HP ANSI C++ B3910B A.03.33"
"  and it also works fine...
"  
"  Now suggestions by aCC are supported (compile flag aCC +w).
"  Thanks to Tim Brown again!!
"  

if exists("current_compiler")
  finish
endif
let current_compiler = "hp_acc"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=%A%trror\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m,
         \%A%tarning\ (suggestion)\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m\ %#,
         \%A%tarning\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m\ %#,
         \%Z\ \ \ \ %p^%.%#,
         \%-C%.%#
... (6 lines truncated)
</file>

<file path="runtime/compiler/iar.vim">
" Vim compiler file
" Compiler: IAR Systems C/C++ Compiler

if exists("current_compiler")
  finish
endif
let current_compiler = "iar"

let s:cpo_save = &cpo
set cpo&vim

"   abc;
"   ^
" "/tmp/test.c",3  Error[Pe077]: this
"           declaration has no storage class or type specifier

" Error[Li005]: no definition for "Foo::Foo(unsigned shor
"           t, unsigned short, unsigned int, char const *)"
"           [referenced from Bar.o(libBar.a)]

CompilerSet errorformat=
      \%A\ \ %p^,
      \%C\"%f\"\\\,%l\ \ Remark[%*[^]]]:%m,
      \%C\"%f\"\\\,%l\ \ %tarning[%*[^]]]:%m,
      \%C\"%f\"\\\,%l\ \ %trror[%*[^]]]:%m,
      \%C\"%f\"\\\,%l\ \ Fatal\ %trror[%*[^]]]:%m,
      \%C\"%f\"\\\,%l\ \ [note]:%m,
      \%EInternal\ error:%m,
      \%EError[%*[^]]]:%m,
      \%C%\\s%\\+%m,
... (5 lines truncated)
</file>

<file path="runtime/compiler/icc.vim">
" Vim compiler file
" Compiler:		icc - Intel C++
" Maintainer: Peter Puck <PtrPck@netscape.net>
" Last Change: 2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "icc"

" I think that Intel is calling the compiler icl under Windows

CompilerSet errorformat=%-Z%p^,%f(%l):\ remark\ #%n:%m,%f(%l)\ :\ (col.\ %c)\ remark:\ %m,%E%f(%l):\ error:\ %m,%E%f(%l):\ error:\ #%n:\ %m,%W%f(%l):\ warning\ #%n:\ %m,%W%f(%l):\ warning:\ %m,%-C%.%#
</file>

<file path="runtime/compiler/icon.vim">
" Vim compiler file
" Compiler:	Icon Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "icont"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=icont\ -s
CompilerSet errorformat=%-G%\\d%\\+\ errors%\\=,
		       \%ERun-time\ error\ %n,
		       \%ERun-time\ error\ %n\ in\ %m,
		       \%ZTraceback:,
                       \%+Coffending\ value:\ %.%#,
                       \%CFile\ %f;\ Line\ %l,
                       \%EFile\ %f;\ Line\ %l\ #\ %m,
		       \%EFile\ %f;\ %m,
		       \%E%f:%l:\ #\ %m,
		       \%E%f:\ %m,
		       \%+C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/ifort.vim">
" Compiler: Intel Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.1
" Last Change: 2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" Homepage: http://www.vim.org/scripts/script.php?script_id=3497
"           https://bitbucket.org/xuhdev/compiler-ifort.vim
" License: Same as Vim

if exists('current_compiler')
    finish
endif
let current_compiler = 'ifort'
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=
            \%A%f(%l):\ %trror\ \#%n:\ %m,
            \%A%f(%l):\ %tarning\ \#%n:\ %m,
            \%-Z%p^,
            \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/intel.vim">
" Vim compiler file
" Compiler:     Intel C++ 7.1
" Maintainer:   David Harrison <david_jr@users.sourceforge.net>
" Last Change:  2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "intel"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=%E%f(%l):\ error:\ %m,
		    \%W%f(%l):\ warning:\ %m,
		    \%I%f(%l):\ remark\ #%n:\ %m,
		    \%+C\ \ %m.,
		    \%-Z\ \ %p^,
		    \%-G\\s%#,
		    \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/irix5_c.vim">
" Vim compiler file
" Compiler:	SGI IRIX 5.3 cc
" Maintainer:	David Harrison <david_jr@users.sourceforge.net>
" Last Change:	2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "irix5_c"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=\%Ecfe:\ Error:\ %f\\,\ line\ %l:\ %m,
		     \%Wcfe:\ Warning:\ %n:\ %f\\,\ line\ %l:\ %m,
		     \%Wcfe:\ Warning\ %n:\ %f\\,\ line\ %l:\ %m,
		     \%W(%l)\ \ Warning\ %n:\ %m,
		     \%-Z\ %p^,
		     \-G\\s%#,
		     \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/irix5_cpp.vim">
" Vim compiler file
" Compiler:	SGI IRIX 5.3 CC or NCC
" Maintainer:	David Harrison <david_jr@users.sourceforge.net>
" Last Change:	2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "irix5_cpp"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=%E\"%f\"\\,\ line\ %l:\ error(%n):\ ,
		    \%E\"%f\"\\,\ line\ %l:\ error(%n):\ %m,
		    \%W\"%f\"\\,\ line\ %l:\ warning(%n):\ %m,
		    \%+IC++\ prelinker:\ %m,
		      \%-Z\ \ %p%^,
		      \%+C\ %\\{10}%.%#,
		      \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/javac.vim">
" Vim compiler file
" Compiler:	Java Development Kit Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Nov 19 (enable local javac_makeprg_params)
" 		2025 Mar 11 (add comment for Dispatch)

if exists("current_compiler")
  finish
endif
let current_compiler = "javac"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=javac
execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params', get(g:, 'javac_makeprg_params', '')), ' \|"')}'

CompilerSet errorformat=%E%f:%l:\ error:\ %m,
		       \%W%f:%l:\ warning:\ %m,
		       \%-Z%p^,
		       \%-C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/jest.vim">
" Vim compiler file
" Compiler:	Jest
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "jest"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ --no-install\ jest\ --no-colors

CompilerSet makeprg=jest\ --no-colors
CompilerSet errorformat=%-A\ \ ●\ Console,
		       \%E\ \ ●\ %m,
		       \%Z\ %\\{4}%.%#Error:\ %f:\ %m\ (%l:%c):%\\=,
		       \%Z\ %\\{6}at\ %\\S%#\ (%f:%l:%c),
		       \%Z\ %\\{6}at\ %\\S%#\ %f:%l:%c,
		       \%+C\ %\\{4}%\\w%.%#,
		       \%+C\ %\\{4}%[-+]%.%#,
		       \%-C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/jikes.vim">
" Vim Compiler File
" Compiler:	Jikes
" Maintainer:	Dan Sharp <dwsharp at hotmail dot com>
" Last Change:	2019 Jul 23
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" URL:		http://dwsharp.users.sourceforge.net/vim/compiler

if exists("current_compiler")
  finish
endif
let current_compiler = "jikes"

" Jikes defaults to printing output on stderr
CompilerSet makeprg=jikes\ -Xstdout\ +E\ \"%:S\"
CompilerSet errorformat=%f:%l:%v:%*\\d:%*\\d:%*\\s%m
</file>

<file path="runtime/compiler/jjs.vim">
" Vim compiler file
" Compiler:	Nashorn Shell
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "jjs"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=jjs
CompilerSet errorformat=%f:%l:%c\ %m,
		       \%f:%l\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/jq.vim">
" Vim compiler file
" Compiler:	jq
" Maintainer:	Vito <vito.blog@gmail.com>
" Last Change:	2024 Apr 17
" Upstream: https://github.com/vito-c/jq.vim

if exists('b:current_compiler')
  finish
endif
let b:current_compiler = 'jq'

let s:save_cpoptions = &cpoptions
set cpoptions&vim

if has('unix')
  CompilerSet makeprg=jq\ -f\ %:S\ /dev/null
else
  CompilerSet makeprg=jq\ -f\ %:S\ nul
endif
CompilerSet errorformat=%E%m\ at\ \\<%o\\>\\,\ line\ %l:,
            \%Z,
            \%-G%.%#

let &cpoptions = s:save_cpoptions
unlet s:save_cpoptions
</file>

<file path="runtime/compiler/jshint.vim">
" Vim compiler file
" Compiler:	JSHint
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "jshint"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ jshint\ --verbose

CompilerSet makeprg=jshint\ --verbose
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m\ (%t%n),
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/jsonlint.vim">
" Vim compiler file
" Compiler:	JSON Lint
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "jsonlint"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ jsonlint\ --compact\ --quiet

CompilerSet makeprg=jsonlint\ --compact\ --quiet
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ found:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/just.vim">
" Vim compiler file
" Compiler:	Just
" Maintainer:	Alarcritty
" Last Change:	2026 Mar 20

if exists("current_compiler")
  finish
endif
let current_compiler = "just"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=just

CompilerSet errorformat=
      \%Eerror:\ %m,
      \%C%\\s%#——▶\ %f:%l:%c,
      \%-C%.%#,
      \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/make.vim">
" Vim compiler plugin
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2024 Sep 10
" Original Author: Konfekt
"
" This compiler plugin is used to reset previously set compiler options.

if exists("g:current_compiler") | unlet g:current_compiler | endif
if exists("b:current_compiler") | unlet b:current_compiler | endif

CompilerSet makeprg&
CompilerSet errorformat&
</file>

<file path="runtime/compiler/maven.vim">
" Vim compiler file
" Compiler:	Maven
" Maintainer:	D. Ben Knoble <ben.knoble+vim@gmail.com>
" Maintainer:	Konfekt
" Original Source:	https://github.com/JalaiAmitahl/maven-compiler.vim/blob/master/compiler/mvn.vim
"                   (Copyright Dan Taylor, distributed under the same terms as LICENSE)
" Original Source:	https://github.com/mikelue/vim-maven-plugin/blob/master/compiler/maven.vim
"                   (distributed under same terms as LICENSE per
"                   https://github.com/mikelue/vim-maven-plugin/issues/13)
" Last Change:	2025 Nov 18

if exists("current_compiler")
  finish
endif
let current_compiler = "maven"

" CompilerSet makeprg=mvn
execute $'CompilerSet makeprg=mvn\ --batch-mode\ {escape(get(b:, 'maven_makeprg_params', get(g:, 'maven_makeprg_params', '')), ' \|"')}'

" Error message for POM
CompilerSet errorformat=[FATAL]\ Non-parseable\ POM\ %f:\ %m%\\s%\\+@%.%#line\ %l\\,\ column\ %c%.%#,
CompilerSet errorformat+=[%tRROR]\ Malformed\ POM\ %f:\ %m%\\s%\\+@%.%#line\ %l\\,\ column\ %c%.%#
" Handle Non-parseable POM with '@<line>:<col>' embedded in the 'position:' clause.
CompilerSet errorformat+=[FATAL]\ Non-parseable\ POM\ %f:\ %m%\\s%\\+%.%#@%l:%c%.%#,
CompilerSet errorformat+=[%tRROR]\ Malformed\ POM\ %f:\ %m%\\s%\\+%.%#@%l:%c%.%#,

" JavaC messages with paths relative to module root:
" With column:
CompilerSet errorformat+=[%tARNING]\ %f:[%l\\,%c]\ %m
CompilerSet errorformat+=[%tRROR]\ %f:[%l\\,%c]\ %m
... (43 lines truncated)
</file>

<file path="runtime/compiler/mcs.vim">
" Vim compiler file
" Compiler:     Mono C# Compiler
" Maintainer:   Jarek Sobiecki <harijari@go2.pl>
" Contributors: Peter Collingbourne and Enno Nagel
" Last Change:  2024 Mar 29
"               2024 Apr 05 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "mcs"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=mcs
CompilerSet errorformat=
         \%D%.%#Project\ \"%f/%[%^/\"]%#\"%.%#,
         \%X%.%#Done\ building\ project\ \"%f/%[%^/\"]%#\"%.%#,
         \%-G%\\s%.%#,
         \%E%f(%l):\ error\ CS%n:%m,
         \%W%f(%l):\ warning\ CS%n:%m,
         \%E%f(%l\\,%c):\ error\ CS%n:%m,
         \%W%f(%l\\,%c):\ warning\ CS%n:%m,
         \%E%>syntax\ error\\,%m,%Z%f(%l\\,%c):\ error\ CS%n:%m,
         \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
         \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
         \%DMaking\ %*\\a\ in\ %f,
         \%-G%.%#

... (3 lines truncated)
</file>

<file path="runtime/compiler/mips_c.vim">
" Vim compiler file
" Compiler:	SGI IRIX 6.5 MIPS C (cc)
" Maintainer:	David Harrison <david_jr@users.sourceforge.net>
" Last Change:	2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "mips_c"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%+C\ \ %m.,
		    \%-Z\ \ %p^,
		    \%-G\\s%#,
		    \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/mipspro_c89.vim">
" Vim compiler file
" Compiler:	SGI IRIX 6.5 MIPSPro C (c89)
" Maintainer:	David Harrison <david_jr@users.sourceforge.net>
" Last Change:	2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "mipspro_c89"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%-Z%p%^,
		    \%+C\ %\\{10}%m%.,
		    \%+C\ \ %m,
		    \%-G\\s%#,
		    \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/mipspro_cpp.vim">
" Vim compiler file
" Compiler:	SGI IRIX 6.5 MIPSPro C++ (CC)
" Maintainer:	David Harrison <david_jr@users.sourceforge.net>
" Last Change:	2012 Apr 30
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "mipspro_cpp"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l,
		    \%+C\ \ %m.,
		    \%-Z\ \ %p^,
		    \%-G\\s%#,
		    \%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/modelsim_vcom.vim">
" Vim Compiler File
" Compiler:	Modelsim Vcom
" Maintainer:	Paul Baleme <pbaleme@mail.com>
" Contributors: Enno Nagel
" Last Change:	2024 Mar 29
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" Thanks to:    allanherriman@hotmail.com

if exists("current_compiler")
  finish
endif
let current_compiler = "modelsim_vcom"

CompilerSet makeprg=vcom

"setlocal errorformat=\*\*\ %tRROR:\ %f(%l):\ %m,%tRROR:\ %f(%l):\ %m,%tARNING\[%*[0-9]\]:\ %f(%l):\ %m,\*\*\ %tRROR:\ %m,%tRROR:\ %m,%tARNING\[%*[0-9]\]:\ %m
"setlocal errorformat=%tRROR:\ %f(%l):\ %m,%tARNING\[%*[0-9]\]:\ %m
CompilerSet errorformat=\*\*\ %tRROR:\ %f(%l):\ %m,\*\*\ %tRROR:\ %m,\*\*\ %tARNING:\ %m,\*\*\ %tOTE:\ %m,%tRROR:\ %f(%l):\ %m,%tARNING\[%*[0-9]\]:\ %f(%l):\ %m,%tRROR:\ %m,%tARNING\[%*[0-9]\]:\ %m
</file>

<file path="runtime/compiler/msbuild.vim">
" Vim compiler file
" Compiler:	Microsoft Visual Studio C#
" Maintainer:	Chiel ten Brinke (ctje92@gmail.com)
" Last Change:	2013 May 13
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "msbuild"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=\ %#%f(%l\\\,%c):\ %m
CompilerSet makeprg=msbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/msvc.vim">
" Vim compiler file
" Compiler:	Microsoft Visual C
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2023 Aug 10
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("current_compiler")
  finish
endif
let current_compiler = "msvc"

" The errorformat for MSVC is the default.
CompilerSet errorformat&
CompilerSet makeprg=nmake
</file>

<file path="runtime/compiler/mypy.vim">
" Vim compiler file
" Compiler:	Mypy (Python static checker)
" Maintainer:   @Konfekt
" Last Change:	2025 Nov 06

if exists("current_compiler") | finish | endif
let current_compiler = "mypy"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=mypy
exe 'CompilerSet makeprg=' .. escape('mypy --show-column-numbers '
      \ ..get(b:, 'mypy_makeprg_params', get(g:, 'mypy_makeprg_params', '--strict --ignore-missing-imports')),
      \ ' \|"')
CompilerSet errorformat=%f:%l:%c:\ %t%*[^:]:\ %m

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/neato.vim">
" Vim compiler file
" Compiler:     ATT neato
" Maintainer:	Marcos Macedo <bar4ka@bol.com.br>
" Last Change:	2024 March 21
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "neato"

CompilerSet makeprg=neato\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
" matches error messages as below skipping final part after line number
" Error: ./file.dot: syntax error in line 1 near 'rankdir'
CompilerSet errorformat=%trror:\ %f:\ %m\ in\ line\ %l%.%#
</file>

<file path="runtime/compiler/ocaml.vim">
" Vim Compiler File
" Compiler:    ocaml
" Maintainer:  Markus Mottl <markus.mottl@gmail.com>
" URL:         https://github.com/ocaml/vim-ocaml
" Last Change:
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
"              2020 Mar 28 - Improved error format (Thomas Leonard)
"              2017 Nov 26 - Improved error format (Markus Mottl)
"              2013 Aug 27 - Added a new OCaml error format (Markus Mottl)
"
" Marc Weber's comments:
" Setting makeprg doesn't make sense, because there is ocamlc, ocamlopt,
" ocamake and whatnot. So which one to use?
"
" This error format was moved from ftplugin/ocaml.vim to this file,
" because ftplugin is the wrong file to set an error format
" and the error format itself is annoying because it joins many lines in this
" error case:
"
"    Error: The implementation foo.ml does not match the interface foo.cmi:
"    Modules do not match case.
"
" So having it here makes people opt-in


if exists("current_compiler")
    finish
endif
let current_compiler = "ocaml"

... (28 lines truncated)
</file>

<file path="runtime/compiler/onsgmls.vim">
" Vim compiler file
" Compiler:	onsgmls
" Maintainer:	Robert Rowsome <rowsome@wam.umd.edu>
" Last Change:	2019 Jul 23
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "onsgmls"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=onsgmls\ -s\ %:S

CompilerSet errorformat=onsgmls:%f:%l:%c:%t:%m,
		    \onsgmls:%f:%l:%c:%m

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/pandoc.vim">
" Vim compiler file
" Compiler:     Pandoc
" Maintainer:   Konfekt
" Last Change:	2024 Nov 19
" 2025 May 15 by Vim Project: Update the title regex for CompilerSet #17321
" 2026 Jan 10 by Vim Project: Do not set the title #19048
"
" Expects output file extension, say `:make html` or `:make pdf`.
" Passes additional arguments to pandoc, say `:make html --self-contained`.
" Adjust command-line flags by buffer-local/global variable
" b/g:pandoc_compiler_args which defaults to empty.

if exists("current_compiler")
  finish
endif

let s:keepcpo = &cpo
set cpo&vim

let current_compiler = 'pandoc'

" As of 2024-04-08 pandoc supports the following text input formats with
" an ftplugin on Github:
let s:supported_filetypes =
      \ [ 'bibtex', 'markdown', 'creole', 'json', 'csv', 'tsv', 'docbook',
      \   'xml', 'fb2', 'html', 'jira', 'tex', 'mediawiki', 'nroff', 'org',
      \   'rtf', 'rst', 't2t', 'textile', 'twiki', 'typst', 'vimwiki' ]
" .. and out of those the following are included in Vim's runtime:
" 'xml', 'tex', 'html', 'rst', 'json', 'nroff', 'markdown'

... (34 lines truncated)
</file>

<file path="runtime/compiler/pbx.vim">
" Vim compiler file
" Compiler:	Apple Project Builder
" Maintainer:	Alexander von Below (public@vonBelow.Com)
" Last Change:	2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
   finish
endif
let current_compiler = "pbx"

" The compiler actually is gcc, so the errorformat is unchanged
CompilerSet errorformat&

" default make
CompilerSet makeprg=pbxbuild
</file>

<file path="runtime/compiler/perl.vim">
" Vim compiler file
" Compiler:      Perl syntax checks (perl -Wc)
" Maintainer:    vim-perl <vim-perl@googlegroups.com> (need to be subscribed to post)
" Author:        Christian J. Robinson <heptite@gmail.com>
" Homepage:      https://github.com/vim-perl/vim-perl
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
" License:       Vim License (see :help license)
" Last Change:   2021 Nov 2
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "perl"

let s:savecpo = &cpo
set cpo&vim

if get(g:, 'perl_compiler_force_warnings', 1)
	let s:warnopt = 'W'
else
	let s:warnopt = 'w'
endif

if getline(1) =~# '-[^ ]*T'
	let s:taintopt = 'T'
else
	let s:taintopt = ''
endif

... (19 lines truncated)
</file>

<file path="runtime/compiler/perlcritic.vim">
" Vim compiler file
" Compiler:      perlcritic
" Maintainer:    vim-perl <vim-perl@googlegroups.com> (need to be subscribed to post)
" Author:        Doug Kearns <dougkearns@gmail.com>
" Homepage:      https://github.com/vim-perl/vim-perl
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
" License:       Vim License (see :help license)
" Last Change:   2021 Oct 20
"                2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "perlcritic"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=perlcritic\ --nocolor\ --quiet\ --verbose\ \"\\%f:\\%l:\\%c:\\%s:\\%m\\n\"
CompilerSet errorformat=%f:%l:%c:%n:%m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/php.vim">
" Vim compiler file
" Compiler:	PHP CLI
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "php"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=php\ -lq
CompilerSet errorformat=%E<b>%.%#Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
		    \%W<b>%.%#Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
		    \%E%.%#Parse\ error:\ %m\ in\ %f\ on\ line\ %l,
		    \%W%.%#Notice:\ %m\ in\ %f\ on\ line\ %l,
		    \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/phpstan.vim">
" Vim compiler file
" Compiler:	PHPStan
" Maintainer:	Dietrich Moerman <dietrich.moerman@gmail.com>
" Last Change:	2025 Jul 17

if exists("current_compiler")
  finish
endif
let current_compiler = "phpstan"

CompilerSet makeprg=composer\ exec\ --\ phpstan\ analyse\ -v\ --no-progress\ --error-format=raw
CompilerSet errorformat=%f:%l:%m,%-G%.%#
</file>

<file path="runtime/compiler/pip_compile.vim">
" the Requirements File Format syntax support for Vim
" Version: 1.8.0
" Author:  raimon <raimon49@hotmail.com>
" Upstream: https://github.com/raimon49/requirements.txt.vim
" License: MIT LICENSE
" The MIT License (MIT)
"
" Copyright (c) 2015 raimon
"
" Permission is hereby granted, free of charge, to any person obtaining a copy
" of this software and associated documentation files (the "Software"), to deal
" in the Software without restriction, including without limitation the rights
" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
" copies of the Software, and to permit persons to whom the Software is
" furnished to do so, subject to the following conditions:
"
" The above copyright notice and this permission notice shall be included in all
" copies or substantial portions of the Software.
"
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
" SOFTWARE.

if exists('b:current_compiler')
    finish
endif
... (14 lines truncated)
</file>

<file path="runtime/compiler/podchecker.vim">
" Vim compiler file
" Compiler:      podchecker
" Maintainer:    vim-perl <vim-perl@googlegroups.com> (need to be subscribed to post)
" Author:        Doug Kearns <dougkearns@gmail.com>
" Homepage:      https://github.com/vim-perl/vim-perl
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
" License:       Vim License (see :help license)
" Last Change:   2021 Oct 20
"                2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "podchecker"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=podchecker\ -w
CompilerSet errorformat=\*\*\*\ %tRROR:\ %m\ at\ line\ %l\ in\ file\ %f,
                       \\*\*\*\ %tARNING:\ %m\ at\ line\ %l\ in\ file\ %f,
                       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/powershell.vim">
" Vim compiler file
" Compiler:	powershell
" URL: https://github.com/PProvost/vim-ps1
" Contributors: Enno Nagel
" Last Change: 2024 Mar 29
"		2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
"		2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
"		2024 Nov 19 by the Vim Project (properly escape makeprg setting)
"		2025 Mar 11 by the Vim Project (add comment for Dispatch)

if exists("current_compiler")
  finish
endif
let current_compiler = "powershell"

let s:cpo_save = &cpo
set cpo-=C

if !exists("g:ps1_makeprg_cmd")
  if executable('pwsh')
    " pwsh is the future
    let g:ps1_makeprg_cmd = 'pwsh'
  elseif executable('pwsh.exe')
    let g:ps1_makeprg_cmd = 'pwsh.exe'
  elseif executable('powershell.exe')
    let g:ps1_makeprg_cmd = 'powershell.exe'
  else
    let g:ps1_makeprg_cmd = ''
  endif
endif
... (60 lines truncated)
</file>

<file path="runtime/compiler/pylint.vim">
" Vim compiler file
" Compiler:     Pylint for Python
" Maintainer:   Daniel Moch <daniel@danielmoch.com>
" Last Change:  2024 Nov 07 by The Vim Project (added params variable)
"		2024 Nov 19 by the Vim Project (properly escape makeprg setting)
"		2025 Nov 06 by the Vim Project (do not set buffer-local makeprg)

if exists("current_compiler") | finish | endif
let current_compiler = "pylint"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=ruff
exe 'CompilerSet makeprg=' .. escape('pylint ' .
      \ '--output-format=text --msg-template="{path}:{line}:{column}:{C}: [{symbol}] {msg}" --reports=no ' .
      \ get(b:, "pylint_makeprg_params", get(g:, "pylint_makeprg_params", '--jobs=0')),
      \ ' \|"')
CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/pyright.vim">
" Vim compiler file
" Compiler:     Pyright (Python Type Checker)
" Maintainer:   @konfekt
" Last Change:  2025 Feb 7

if exists("current_compiler") | finish | endif
let current_compiler = "pyright"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=pyright
" CompilerSet makeprg=basedpyright
exe 'CompilerSet makeprg=' ..  escape(
        \ get(b:, 'pyright_makeprg', get(g:, 'pyright_makeprg', 'pyright')),
        \ ' \|"')
CompilerSet errorformat=
      \%E%f:%l:%c\ -\ error:\ %m,
      \%W%f:%l:%c\ -\ warning:\ %m,
      \%N%f:%l:%c\ -\ note:\ %m,
      \%C[\ \t]\ %.%#,
      \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/pytest.vim">
" Vim compiler file
" Compiler:     Pytest (Python testing framework)
" Maintainer:   @Konfekt and @mgedmin
" Last Change:  2024 Nov 28

if exists("current_compiler") | finish | endif
let current_compiler = "pytest"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=pytest
if has('unix')
  execute $'CompilerSet makeprg=/usr/bin/env\ PYTHONWARNINGS=ignore\ pytest\ {escape(get(b:, 'pytest_makeprg_params', get(g:, 'pytest_makeprg_params', '--tb=short --quiet')), ' \|"')}'
elseif has('win32')
  execute $'CompilerSet makeprg=set\ PYTHONWARNINGS=ignore\ &&\ pytest\ {escape(get(b:, 'pytest_makeprg_params', get(g:, 'pytest_makeprg_params', '--tb=short --quiet')), ' \|"')}'
else
  CompilerSet makeprg=pytest\ --tb=short\ --quiet
  execute $'CompilerSet makeprg=pytest\ {escape(get(b:, 'pytest_makeprg_params', get(g:, 'pytest_makeprg_params', '--tb=short --quiet')), ' \|"')}'
endif

" Pytest syntax errors                                          {{{2

" Reset error format so that sourcing .vimrc again and again doesn't grow it
" without bounds
setlocal errorformat&

" For the record, the default errorformat is this:
"
"   %*[^"]"%f"%*\D%l: %m
... (74 lines truncated)
</file>

<file path="runtime/compiler/pyunit.vim">
" Vim compiler file
" Compiler:	Unit testing tool for Python
" Maintainer:	Max Ischenko <mfi@ukr.net>
" Last Change: 2004 Mar 27
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "pyunit"

CompilerSet efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
</file>

<file path="runtime/compiler/raco.vim">
" Vim compiler file
" Compiler:     raco (Racket command-line tools)
" Maintainer:   D. Ben Knoble <ben.knoble+github@gmail.com>
" URL:          https://github.com/benknoble/vim-racket
" Last Change: 2022 Aug 12
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

let current_compiler = 'raco'

CompilerSet makeprg=raco
CompilerSet errorformat=%f:%l:%c:%m
</file>

<file path="runtime/compiler/racomake.vim">
" Vim compiler file
" Compiler:     raco make (Racket command-line tools)
" Maintainer:   D. Ben Knoble <ben.knoble+github@gmail.com>
" URL:          https://github.com/benknoble/vim-racket
" Last Change: 2022 Aug 12
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

let current_compiler = 'racomake'

CompilerSet makeprg=raco\ make\ --\ %
CompilerSet errorformat=%f:%l:%c:%m
</file>

<file path="runtime/compiler/racosetup.vim">
" Vim compiler file
" Compiler:     raco setup (Racket command-line tools)
" Maintainer:   D. Ben Knoble <ben.knoble+github@gmail.com>
" URL:          https://github.com/benknoble/vim-racket
" Last Change: 2022 Aug 12
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

let current_compiler = 'racosetup'

CompilerSet makeprg=raco\ setup
CompilerSet errorformat=%f:%l:%c:%m
</file>

<file path="runtime/compiler/racotest.vim">
" Vim compiler file
" Compiler:     raco test (Racket command-line tools)
" Maintainer:   D. Ben Knoble <ben.knoble+github@gmail.com>
" URL:          https://github.com/benknoble/vim-racket
" Last Change: 2022 Aug 12
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

let current_compiler = 'racotest'

CompilerSet makeprg=raco\ test\ %
CompilerSet errorformat=location:%f:%l:%c
</file>

<file path="runtime/compiler/rake.vim">
" Vim compiler file
" Language:		Rake
" Maintainer:		Tim Pope <vimNOSPAM@tpope.org>
" URL:			https://github.com/vim-ruby/vim-ruby
" Last Change:		2018 Mar 02
"			2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "rake"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=rake

CompilerSet errorformat=
      \%D(in\ %f),
      \%\\s%#%\\d%#:%#\ %#from\ %f:%l:%m,
      \%\\s%#%\\d%#:%#\ %#from\ %f:%l:,
      \%\\s%##\ %f:%l:%m%\\&%.%#%\\D:%\\d%\\+:%.%#,
      \%\\s%##\ %f:%l%\\&%.%#%\\D:%\\d%\\+,
      \%\\s%#[%f:%l:\ %#%m%\\&%.%#%\\D:%\\d%\\+:%.%#,
      \%\\s%#%f:%l:\ %#%m%\\&%.%#%\\D:%\\d%\\+:%.%#,
      \%\\s%#%f:%l:,
      \%m\ [%f:%l]:,
      \%+Erake\ aborted!,
      \%+EDon't\ know\ how\ to\ build\ task\ %.%#,
      \%+Einvalid\ option:%.%#,
... (7 lines truncated)
</file>

<file path="runtime/compiler/README.txt">
This directory contains Vim scripts to be used with a specific compiler.
They are used with the ":compiler" command.

These scripts usually set options, for example 'errorformat'.
See ":help write-compiler-plugin".

To undo the effect of a compiler plugin, use the make compiler plugin.

If you want to write your own compiler plugin, have a look at the other files
for how to do it, the format is simple.

If you think a compiler plugin you have written is useful for others, please
send it to the vim-dev mailing list: <vim-dev@vim.org>
</file>

<file path="runtime/compiler/rhino.vim">
" Vim compiler file
" Compiler:	Rhino Shell (JavaScript in Java)
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "rhino"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=java\ -jar\ lib/rhino-X.X.XX.jar\ -w\ -strict

CompilerSet makeprg=rhino
CompilerSet errorformat=%-Gjs:\ %.%#Compilation\ produced%.%#,
		       \%Ejs:\ \"%f\"\\,\ line\ %l:\ %m,
		       \%Ejs:\ uncaught\ JavaScript\ runtime\ exception:\ %m,
		       \%Wjs:\ warning:\ \"%f\"\\,\ line\ %l:\ %m,
		       \%Zjs:\ %p^,
		       \%Cjs:\ %.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/rime_deployer.vim">
" Vim Compiler File
" Language:             rime_deployer
" Maintainer:           Wu, Zhenyu <wuzhenyu@ustc.edu>
" URL:                  https://rime.im
" Latest Revision:      2024-04-09
" Last Change:          2025 Nov 16 by The Vim Project (set errorformat)

if exists('b:current_compiler')
  finish
endif
let b:current_compiler = 'rime_deployer'

let s:save_cpoptions = &cpoptions
set cpoptions&vim

" Android Termux
let s:prefix = getenv('PREFIX')
if s:prefix == v:null
  let s:prefix = '/usr'
endif
" Android, NixOS, GNU/Linux, BSD
for s:shared_data_dir in ['/sdcard/rime-data', '/run/current-system/sw/share/rime-data', '/usr/local/share/rime-data', s:prefix . '/share/rime-data']
  if isdirectory(s:shared_data_dir)
    break
  endif
endfor
execute 'CompilerSet makeprg=rime_deployer\ --build\ %:p:h:S\' s:shared_data_dir
unlet s:prefix s:shared_data_dir
" CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m
CompilerSet errorformat&
... (4 lines truncated)
</file>

<file path="runtime/compiler/rspec.vim">
" Vim compiler file
" Language:		RSpec
" Maintainer:		Tim Pope <vimNOSPAM@tpope.org>
" URL:			https://github.com/vim-ruby/vim-ruby
" Last Change:		2018 Aug 07
"			2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "rspec"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=rspec

CompilerSet errorformat=
    \%f:%l:\ %tarning:\ %m,
    \%E%.%#:in\ `load':\ %f:%l:%m,
    \%E%f:%l:in\ `%*[^']':\ %m,
    \%-Z\ \ \ \ \ %\\+\#\ %f:%l:%.%#,
    \%E\ \ \ \ \ Failure/Error:\ %m,
    \%E\ \ \ \ \ Failure/Error:,
    \%C\ \ \ \ \ %m,
    \%C%\\s%#,
    \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
... (3 lines truncated)
</file>

<file path="runtime/compiler/rst.vim">
" Vim compiler file
" Compiler:             sphinx >= 1.0.8, http://www.sphinx-doc.org
" Description:          reStructuredText Documentation Format
" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>
" Last Change:          2017 Mar 31
"                       2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "rst"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet errorformat=
      \%f\\:%l:\ %tEBUG:\ %m,
      \%f\\:%l:\ %tNFO:\ %m,
      \%f\\:%l:\ %tARNING:\ %m,
      \%f\\:%l:\ %tRROR:\ %m,
      \%f\\:%l:\ %tEVERE:\ %m,
      \%f\\:%s:\ %tARNING:\ %m,
      \%f\\:%s:\ %tRROR:\ %m,
      \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
      \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
      \%DMaking\ %*\\a\ in\ %f

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/rubocop.vim">
" Vim compiler file
" Compiler:	RuboCop
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "rubocop"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=rubocop\ --format\ emacs
CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/ruby.vim">
" Vim compiler file
" Language:		Ruby
" Function:		Syntax check and/or error reporting
" Maintainer:		Tim Pope <vimNOSPAM@tpope.org>
" URL:			https://github.com/vim-ruby/vim-ruby
" Last Change:		2019 Jan 06
"			2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "ruby"

let s:cpo_save = &cpo
set cpo-=C

" default settings runs script normally
" add '-c' switch to run syntax check only:
"
"   CompilerSet makeprg=ruby\ -c
"
" or add '-c' at :make command line:
"
"   :make -c %<CR>
"
CompilerSet makeprg=ruby

CompilerSet errorformat=
    \%+E%f:%l:\ parse\ error,
    \%W%f:%l:\ warning:\ %m,
... (12 lines truncated)
</file>

<file path="runtime/compiler/rubyunit.vim">
" Vim compiler file
" Language:		Test::Unit - Ruby Unit Testing Framework
" Maintainer:		Doug Kearns <dougkearns@gmail.com>
" URL:			https://github.com/vim-ruby/vim-ruby
" Last Change:		2014 Mar 23
"			2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "rubyunit"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=testrb
" CompilerSet makeprg=ruby\ -Itest
" CompilerSet makeprg=m

CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
			\%C%m\ [%f:%l]:,
			\%E\ %\\+%\\d%\\+)\ Error:,
			\%C%m:,
			\%C\ \ \ \ %f:%l:%.%#,
			\%C%m,
			\%Z\ %#,
			\%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
... (3 lines truncated)
</file>

<file path="runtime/compiler/ruff.vim">
" Vim compiler file
" Compiler:     Ruff (Python linter)
" Maintainer:   @pbnj-dragon
" Last Change:  2024 Nov 07
"		2024 Nov 19 by the Vim Project (properly escape makeprg setting)
"		2025 Nov 06 by the Vim Project (do not set buffer-local makeprg)
"		2024 Dec 24 by the Vim Project (mute Found messages)

if exists("current_compiler") | finish | endif
let current_compiler = "ruff"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=ruff
exe 'CompilerSet makeprg=' .. escape('ruff check --output-format=concise '
        \ ..get(b:, 'ruff_makeprg_params', get(g:, 'ruff_makeprg_params', '--preview')),
        \ ' \|"')
CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
CompilerSet errorformat+=%-GFound\ %.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/rustc.vim">
" Vim compiler file
" Compiler:         Rust Compiler
" Maintainer:       Chris Morgan <me@chrismorgan.info>
" Latest Revision:  2023-09-11
" 2025 Nov 15 by Vim project: remove test for Vim patch 7.4.191
" 2025 Dec 18 by Vim project: detect more errors #18957
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim

if exists("current_compiler")
    finish
endif
let current_compiler = "rustc"

" vint: -ProhibitAbbreviationOption
let s:save_cpo = &cpo
set cpo&vim
" vint: +ProhibitAbbreviationOption

if get(g:, 'rustc_makeprg_no_percent', 0)
    CompilerSet makeprg=rustc
else
    CompilerSet makeprg=rustc\ \%:S
endif

" New errorformat (after nightly 2016/08/10)
CompilerSet errorformat=
            \%-G,
            \%-Gerror:\ aborting\ %.%#,
            \%-Gerror:\ Could\ not\ compile\ %.%#,
            \%Eerror:\ %m,
... (24 lines truncated)
</file>

<file path="runtime/compiler/sass.vim">
" Vim compiler file
" Compiler:	Sass
" Maintainer:	Tim Pope <vimNOSPAM@tpope.org>
" Last Change:	2016 Aug 29
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "sass"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=sass

CompilerSet errorformat=
      \%f:%l:%m\ (Sass::Syntax%trror),
      \%ESyntax\ %trror:%m,
      \%C%\\s%\\+on\ line\ %l\ of\ %f,
      \%Z%.%#,
      \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save

" vim:set sw=2 sts=2:
</file>

<file path="runtime/compiler/scdoc.vim">
" scdoc compiler for Vim
" Compiler: scdoc
" Maintainer: Gregory Anders <contact@gpanders.com>
" Last Updated: 2019-10-24
"               2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
" Upstream: https://github.com/gpanders/vim-scdoc

if exists('current_compiler')
    finish
endif
let current_compiler = 'scdoc'

CompilerSet makeprg=scdoc\ <\ %\ 2>&1
CompilerSet errorformat=Error\ at\ %l:%c:\ %m,%-G%.%#
</file>

<file path="runtime/compiler/se.vim">
" Vim compiler file
" Compiler:	se (Liberty Eiffel Compiler)
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "se"

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=se\ c

CompilerSet errorformat=%W******\ Warning:\ %m,
		    \%E******\ Fatal\ Error:\ %m,
		    \%E******\ Error:\ %m,
		    \%ZLine\ %l\ column\ %c\ in\ %.%#\ (%f)\ %\\=:,
		    \%ZLine\ %l\ columns\ %c\\,\ %\\d%\\+\ %.%#\ (%f)\ %\\=:,
		    \%+C%*[^\ ]%.%#,
		    \%-GThe\ source\ lines\ involved,
		    \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/shellcheck.vim">
" Vim compiler file
" Compiler:	ShellCheck
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "shellcheck"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=shellcheck\ -f\ gcc
CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m\ [SC%n],
		       \%f:%l:%c:\ %tarning:\ %m\ [SC%n],
		       \%f:%l:%c:\ %tote:\ %m\ [SC%n],
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/sml.vim">
" Vim compiler file
" Compiler:	SML/NJ Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "sml"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=sml
CompilerSet errorformat=%f:%l.%c-%e.%k\ %trror:\ %m,
		       \%f:%l.%c\ %trror:\ %m,
		       \%trror:\ %m,
		       \%f:%l.%c-%e.%k\ %tarning:\ %m,
		       \%f:%l.%c\ %tarning:\ %m,
		       \%tarning:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/spectral.vim">
" Vim compiler file
" Compiler:    Spectral for YAML
" Maintainer:  Romain Lafourcade <romainlafourcade@gmail.com>
" Last Change: 2021 July 21
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
    finish
endif
let current_compiler = "spectral"

CompilerSet makeprg=spectral\ lint\ %\ -f\ text
CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m
</file>

<file path="runtime/compiler/splint.vim">
" Vim compiler file
" Compiler:     splint/lclint (C source code checker)
" Maintainer:   Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
" Splint Home:	http://www.splint.org/
" Last Change:  2019 Jul 23
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" $Revision: 1.3 $

if exists("current_compiler")
  finish
endif
let current_compiler = "splint"

let s:cpo_save = &cpo
set cpo-=C

" adapt this if you want to check more than one file at a time.
" put command line options in .splintrc or ~/.splintrc
CompilerSet makeprg=splint\ %:S

" Note: when using the new array bounds checking flags:  Each warning
" usually has several lines and several references to source code mostly
" within one or two lines (see sample warning below).  The easiest way
" not to mess up file name detection and not to jump to all positions is
" to add something like
"	-linelen 500 +boundscompacterrormessages
" to your .splintrc and 'set cmdheight=4' or more.
" TODO: reliable way to distinguish file names and constraints.
"
" sample warning (generic):
... (39 lines truncated)
</file>

<file path="runtime/compiler/spotbugs.vim">
" Vim compiler file
" Compiler:     Spotbugs (Java static checker; needs javac compiled classes)
" Maintainers:  @konfekt and @zzzyxwvut
" Last Change:  2024 Dec 20

if exists('g:current_compiler') || bufname() !~# '\.java\=$' || wordcount().chars < 9
  finish
endif

let s:cpo_save = &cpo
set cpo&vim

" Unfortunately Spotbugs does not output absolute paths, so you need to
" pass the directory of the files being checked as `-sourcepath` parameter.
" The regex, auxpath and glob try to include all dependent classes of the
" current buffer. See https://github.com/spotbugs/spotbugs/issues/856

" FIXME: When "search()" is used with the "e" flag, it makes no _further_
" progress after claiming an EOL match (i.e. "\_" or "\n", but not "$").
" XXX: Omit anonymous class declarations
let s:keywords = '\C\<\%(\.\@1<!class\|@\=interface\|enum\|record\|package\)\%(\s\|$\)'
let s:type_names = '\C\<\%(\.\@1<!class\|@\=interface\|enum\|record\)\s*\(\K\k*\)\>'
" Capture ";" for counting a class file directory (see s:package_dir_heads below)
let s:package_names = '\C\<package\s*\(\K\%(\k*\.\=\)\+;\)'
let s:package = ''

if has('syntax') && exists('g:syntax_on') &&
    \ exists('b:current_syntax') && b:current_syntax == 'java' &&
    \ hlexists('javaClassDecl') && hlexists('javaExternal')

... (225 lines truncated)
</file>

<file path="runtime/compiler/stack.vim">
" Vim compiler file
" Compiler:         Haskell Stack
" Maintainer:       Daniel Campoverde <alx@sillybytes.net>
" Latest Revision:  2018-08-27

if exists("current_compiler")
  finish
endif
let current_compiler = "stack"

let s:cpo_save = &cpo
set cpo&vim


CompilerSet errorformat=
    \%-G%.%#:\ build\ %.%#,
    \%-G%.%#:\ configure\ %.%#,
    \%-G[%.%#]%.%#,
    \%-G%.%#preprocessing\ %.%#,
    \%-G%.%#configuring\ %.%#,
    \%-G%.%#building\ %.%#,
    \%-G%.%#linking\ %.%#,
    \%-G%.%#installing\ %.%#,
    \%-G%.%#registering\ %.%#,
    \%-G%.%#:\ copy/register%.%#,
    \%-G%.%#process\ exited\ %.%#,
    \%-G%.%#--builddir=%.%#,
    \%-G--%.%#,
    \%-G%.%#\|%.%#,
    \%E%f:%l:%c:\ error:,%+Z\ \ \ \ %m,
... (8 lines truncated)
</file>

<file path="runtime/compiler/standard.vim">
" Vim compiler file
" Compiler:    Standard for JavaScript
" Maintainer:  Romain Lafourcade <romainlafourcade@gmail.com>
" Last Change: 2020 August 20
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "standard"

CompilerSet makeprg=npx\ standard
CompilerSet errorformat=%f:%l:%c:\ %m,%-G%.%#
</file>

<file path="runtime/compiler/stylelint.vim">
" Vim compiler file
" Compiler:	Stylelint
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "stylelint"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ stylelint\ --formatter\ compact

CompilerSet makeprg=stylelint\ --formatter\ compact
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,
		       \%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/svelte-check.vim">
" Vim compiler file
" Compiler:	svelte-check
" Maintainer:	@Konfekt
" Last Change:	2025 Feb 27

if exists("current_compiler") | finish | endif
let current_compiler = "svelte-check"

CompilerSet makeprg=npx\ svelte-check\ --output\ machine
CompilerSet errorformat=%*\\d\ %t%*\\a\ \"%f\"\ %l:%c\ \"%m\",
CompilerSet errorformat+=%-G%*\\d\ START\ %.%#,
CompilerSet errorformat+=%-G%*\\d\ COMPLETED\ %.%#,
CompilerSet errorformat+=%-G%.%#

" " Fall-back for versions of svelte-check that don't support --output machine
" " before  May 2020 https://github.com/sveltejs/language-tools/commit/9f7a90379d287a41621a5e78af5b010a8ab810c3
" " which is before the first production release 1.1.31 of Svelte-Check
" CompilerSet makeprg=npx\ svelte-check
" CompilerSet errorformat=%A%f:%l:%c,
" CompilerSet errorformat+=%C%t%*\\a\\:\ %m,
" CompilerSet errorformat+=%-G%.%#,
</file>

<file path="runtime/compiler/tcl.vim">
" Vim compiler file
" Compiler:	tcl
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "tcl"

CompilerSet makeprg=tcl

CompilerSet errorformat=%EError:\ %m,%+Z\ %\\{4}(file\ \"%f\"\ line\ %l),%-G%.%#
</file>

<file path="runtime/compiler/tex.vim">
" Vim compiler file
" Compiler:     TeX
" Maintainer:   Artem Chuprina <ran@ran.pp.ru>
" Contributors: Enno Nagel
" Last Change:  2024 Mar 29
"		2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
"		2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
"		2024 Nov 19 by the Vim Project (properly escape makeprg setting)
"		2025 Mar 11 by the Vim Project (add comment for Dispatch)

if exists("current_compiler")
	finish
endif
let s:keepcpo= &cpo
set cpo&vim

" If makefile exists and we are not asked to ignore it, we use standard make
" (do not redefine makeprg)
if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
			\(!filereadable('Makefile') && !filereadable('makefile'))
	" If buffer-local variable 'tex_flavor' exists, it defines TeX flavor,
	" otherwise the same for global variable with same name, else it will be
	" LaTeX
	if exists("b:tex_flavor")
		let current_compiler = b:tex_flavor
	elseif exists("g:tex_flavor")
		let current_compiler = g:tex_flavor
	else
		let current_compiler = "latex"
	endif
... (41 lines truncated)
</file>

<file path="runtime/compiler/tidy.vim">
" Vim compiler file
" Compiler:	HTML Tidy
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "tidy"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes
CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m,
		       \%f:%l:%c:\ %tarning:\ %m,
		       \%f:%l:%c:\ %tnfo:\ %m,
		       \%f:%l:%c:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/tombi.vim">
" Vim compiler file
" Language:    TOML
" Maintainer:  Konfekt
" Last Change: 2025 Oct 29

if exists("current_compiler") | finish | endif
let current_compiler = "tombi"

let s:cpo_save = &cpo
set cpo&vim

if !executable('tombi')
  echoerr "tombi compiler: 'tombi' executable not found in PATH"
  let &cpo = s:cpo_save
  unlet s:cpo_save
  finish
endif

" NO_COLOR support requires tombi 0.6.40 or later
if !exists('s:tombi_nocolor')
  " Expect output like: 'tombi 0.6.40' or '0.6.40'
  let s:out = trim(system('tombi --version'))
  let s:tombi_ver = matchstr(s:out, '\v\s\d+\.\d+\.\d+$')

  function s:VersionGE(ver, req) abort
    " Compare semantic versions a.b.c ≥ x.y.z
    let l:pa = map(split(a:ver, '\.'), 'str2nr(v:val)')
    let l:pb = map(split(a:req, '\.'), 'str2nr(v:val)')
    while len(l:pa) < 3 | call add(l:pa, 0) | endwhile
    while len(l:pb) < 3 | call add(l:pb, 0) | endwhile
... (40 lines truncated)
</file>

<file path="runtime/compiler/ts-node.vim">
" Vim compiler file
" Compiler:	TypeScript Runner
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "node"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ ts-node

CompilerSet makeprg=ts-node
CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m,
		       \%E%f:%l,
		       \%+Z%\\w%\\+Error:\ %.%#,
		       \%C%p^%\\+,
		       \%C%.%#,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/tsc.vim">
" Vim compiler file
" Compiler:	TypeScript Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03
"		2025 Mar 11 by The Vim Project (add comment for Dispatch, add tsc_makeprg variable)

if exists("current_compiler")
  finish
endif
let current_compiler = "tsc"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=tsc
" CompilerSet makeprg=npx\ tsc
execute $'CompilerSet makeprg={escape(get(b:, 'tsc_makeprg', get(g:, 'tsc_makeprg', 'tsc')), ' \|"')}'
CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m,
		       \%trror\ TS%n:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/ty.vim">
" Vim compiler file
" Compiler:     Ty (Python Type Checker)
" Maintainer:   @konfekt
" Last Change:  2024 Dec 24

if exists("current_compiler") | finish | endif
let current_compiler = "ty"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=ty
exe 'CompilerSet makeprg=' ..  escape(
        \ get(b:, 'ty_makeprg', get(g:, 'ty_makeprg', 'ty check --no-progress --color=never'))
        \ ..' --output-format=concise', ' \|"')
CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l:%c\ -\ %m,%f:
CompilerSet errorformat+=%-GFound\ %.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/typedoc.vim">
" Vim compiler file
" Compiler:	TypeDoc
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "typedoc"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ typedoc

CompilerSet makeprg=typedoc
CompilerSet errorformat=%EError:\ %f(%l),
		       \%WWarning:\ %f(%l),
		       \%+IDocumentation\ generated\ at\ %f,
		       \%Z\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/typst.vim">
" Vim compiler file
" Language:    Typst
" Previous Maintainer:  Luca Saccarola <github.e41mv@aleeas.com>
" Maintainer:  This runtime file is looking for a new maintainer.
" Based On:    https://github.com/kaarmu/typst.vim
" Last Change: 2025 Aug 05

if exists('current_compiler')
    finish
endif
let current_compiler = get(g:, 'typst_cmd', 'typst')

" With `--diagnostic-format` we can use the default errorformat
let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']

" CompilerSet makeprg=typst
execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')
</file>

<file path="runtime/compiler/vimdoc.vim">
" Vim Compiler File
" Language:             vimdoc
" Maintainer:           Wu, Zhenyu <wuzhenyu@ustc.edu>
" Latest Revision:      2024-04-13
" Last Change: 2025 Nov 16 by The Vim Project (set errorformat)
"
" If you can not find 'vimdoc' in the package manager of your distribution e.g
" 'pip', then you may need to build it from its source.

if exists('b:current_compiler')
  finish
endif
let b:current_compiler = 'vimdoc'

let s:save_cpoptions = &cpoptions
set cpoptions&vim

CompilerSet makeprg=vimdoc
" CompilerSet errorformat=%f:%l:%c:\ %m,%f:%l:\ %m
CompilerSet errorformat&

let &cpoptions = s:save_cpoptions
unlet s:save_cpoptions
</file>

<file path="runtime/compiler/xbuild.vim">
" Vim compiler file
" Compiler:	Mono C#
" Maintainer:	Chiel ten Brinke (ctje92@gmail.com)
" Last Change:	2013 May 13
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif

let current_compiler = "xbuild"
let s:keepcpo= &cpo
set cpo&vim

CompilerSet errorformat=\ %#%f(%l\\\,%c):\ %m
CompilerSet makeprg=xbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true

let &cpo = s:keepcpo
unlet s:keepcpo
</file>

<file path="runtime/compiler/xmllint.vim">
" Vim compiler file
" Compiler:	Libxml2 Command-Line Tool
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "xmllint"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=xmllint\ --valid\ --noout
CompilerSet errorformat=%E%f:%l:\ %.%#\ error\ :\ %m,
		       \%W%f:%l:\ %.%#\ warning\ :\ %m,
		       \%-Z%p^,
		       \%C%.%#,
		       \%terror:\ %m,
		       \%tarning:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/xmlwf.vim">
" Vim Compiler File
" Compiler:	xmlwf
" Maintainer:	Robert Rowsome <rowsome@wam.umd.edu>
" Last Change:	2019 Jul 23
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
  finish
endif
let current_compiler = "xmlwf"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=xmlwf\ %:S

CompilerSet errorformat=%f:%l%c:%m

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/xo.vim">
" Vim compiler file
" Compiler:	XO
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "xo"

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ xo\ --reporter\ compact

CompilerSet makeprg=xo\ --reporter\ compact
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ %m,
		       \%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/compiler/yamllint.vim">
" Vim compiler file
" Compiler:    Yamllint for YAML
" Maintainer:  Romain Lafourcade <romainlafourcade@gmail.com>
" Last Change: 2021 July 21
"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
"              2025 Nov 16 by The Vim Project (set errorformat)

if exists("current_compiler")
    finish
endif
let current_compiler = "yamllint"

CompilerSet makeprg=yamllint\ -f\ parsable
" CompilerSet errorformat=%f:%l:%c:\ [%t%*[^]]]\ %m,%f:%l:%c:\ [%*[^]]]\ %m
CompilerSet errorformat&
</file>

<file path="runtime/compiler/zig_build_exe.vim">
" Vim compiler file
" Compiler: Zig Compiler (zig build-exe)
" Upstream: https://codeberg.org/ziglang/zig.vim
" Last Change: 2025 Nov 16 by the Vim Project (set errorformat)
" 2026 May 12 by the Vim project (remove errorformat)
" 2026 May 24 by the Vim project (do not escape vars for makeprg)

if exists('current_compiler')
  finish
endif
runtime compiler/zig.vim
let current_compiler = 'zig_build_exe'

let s:save_cpo = &cpo
set cpo&vim

CompilerSet makeprg=zig\ build-exe\ %:S\ $*

let &cpo = s:save_cpo
unlet s:save_cpo
" vim: tabstop=8 shiftwidth=2 softtabstop=2 expandtab
</file>

<file path="runtime/compiler/zig_build.vim">
" Vim compiler file
" Compiler: Zig Compiler (zig build)
" Upstream: https://codeberg.org/ziglang/zig.vim
" Last Change: 2024 Apr 05 by the Vim Project (removed :CompilerSet definition)
" 2026 May 12 by the Vim Project (removed comment)

if exists('current_compiler')
  finish
endif
runtime compiler/zig.vim
let current_compiler = 'zig_build'

let s:save_cpo = &cpo
set cpo&vim

if exists('g:zig_build_makeprg_params')
  execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
else
  CompilerSet makeprg=zig\ build\ $*
endif

let &cpo = s:save_cpo
unlet s:save_cpo
" vim: tabstop=8 shiftwidth=2 softtabstop=2 expandtab
</file>

<file path="runtime/compiler/zig_cc.vim">
" Vim compiler file
" Compiler: Zig Compiler (zig cc)
" Last Change: 2026 May 12
" 2026 May 24 by the Vim project (do not escape vars for makeprg)

if exists('current_compiler')
  finish
endif
runtime compiler/zig.vim
let current_compiler = 'zig_cc'

let s:save_cpo = &cpo
set cpo&vim

CompilerSet makeprg=zig\ cc\ %:S\ $*

let &cpo = s:save_cpo
unlet s:save_cpo
" vim: tabstop=8 shiftwidth=2 softtabstop=2 expandtab
</file>

<file path="runtime/compiler/zig_test.vim">
" Vim compiler file
" Compiler: Zig Compiler (zig test)
" Upstream: https://codeberg.org/ziglang/zig.vim
" Last Change: 2025 Nov 16 by the Vim Project (set errorformat)
" 2026 May 12 by the Vim Project (remove error format)
" 2026 May 24 by the Vim project (do not escape vars for makeprg)

if exists('current_compiler')
  finish
endif
runtime compiler/zig.vim
let current_compiler = 'zig_test'

let s:save_cpo = &cpo
set cpo&vim

CompilerSet makeprg=zig\ test\ %:S\ $*

let &cpo = s:save_cpo
unlet s:save_cpo
" vim: tabstop=8 shiftwidth=2 softtabstop=2 expandtab
</file>

<file path="runtime/compiler/zig.vim">
" Vim compiler file
" Compiler: Zig Compiler
" Upstream: https://codeberg.org/ziglang/zig.vim
" Last Change:
" 2026 May 12 by the Vim project (set errormformat)
" 2026 May 24 by the Vim project (do not escape vars for makeprg)

if exists("current_compiler")
    finish
endif
let current_compiler = "zig"

let s:save_cpo = &cpo
set cpo&vim

" a subcommand must be provided for the this compiler (test, build-exe, etc)
CompilerSet makeprg=zig\ $*\ %:S

CompilerSet errorformat=
            \%-G,
            \%-G\ %#+-\ %.%#,
            \%-Ginstall,
            \%-Ginstall\ transitive\ failure,
            \%-Grun,
            \%-Grun\ transitive\ failure,
            \%-Gtest,
            \%-Gtest\ transitive\ failure,
            \%-Gfailed\ command:\ %.%#,
            \%-Gerror:\ %*\\d\ compilation\ errors,
            \%-GBuild\ Summary:\ %.%#,
... (14 lines truncated)
</file>

<file path="runtime/compiler/zsh.vim">
" Vim compiler file
" Compiler:	Zsh
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Apr 03

if exists("current_compiler")
  finish
endif
let current_compiler = "zsh"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=zsh\ -n\ --\ %:S
CompilerSet errorformat=%f:\ line\ %l:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save
</file>

<file path="runtime/lua/nvim/dir/fs.lua">
-- Filesystem backend.

local api = vim.api
local fs = vim.fs

local M = {}

local navigating = false

---@param path string
---@return string
function M.normalize(path)
  return fs.normalize(fs.abspath(path), { plain = true })
end

---@return boolean
function M.is_navigating()
  return navigating
end

---@param path string
local function edit(path)
  navigating = true
  local ok, err = pcall(api.nvim_cmd, {
    cmd = 'edit',
    args = { path },
    mods = { keepalt = vim.b.nvim_dir ~= nil },
    magic = { file = false, bar = false },
  })
  navigating = false
... (94 lines truncated)
</file>

<file path="runtime/lua/nvim/zip/health.lua">
local M = {}

local health = vim.health

local function check_backend()
  health.start('nvim.zip: backend')

  local exe = vim.fn.exepath('unzip')
  if exe == '' then
    health.error('`unzip` executable not found', {
      'Install Info-ZIP `unzip` to browse and read archives.',
      'Or `:packadd old-zip` to use the legacy plugin.',
    })
    return
  end

  local out = vim.system({ exe, '-v' }, { text = true }):wait()
  local version = vim.split(out.stdout or '', '\n')[1] or ''
  health.ok(('`unzip` found: %s'):format(exe))
  if version ~= '' then
    health.info(version)
  end
end

--- @return boolean Whether an implementation that needs the backend is handling archives.
local function check_active()
  health.start('nvim.zip: active implementation')

  local legacy = vim.fn.exists('#zip') == 1
  local builtin = vim.fn.exists('#nvim.zip') == 1
... (31 lines truncated)
</file>

<file path="runtime/lua/nvim/autoread.lua">
--- Provides 'autoread' via OS filewatchers: watches 'autoread' buffer files for external changes
--- using vim._watch. Complements the existing FocusGained/:checktime approach.

local uv = vim.uv
local watch = vim._watch
local nvim_on = require('vim._core.util').nvim_on

local M = {}

local debounce_ms = 100
--- @type table<integer, fun()> bufnr -> cancel function
local watchers = {}
--- @type table<integer, uv.uv_timer_t> bufnr -> debounce timer
local timers = {}
--- @type table<integer, true> bufnr -> true. Tracks pending autoreads (debounce window, or :checktime in flight),
--- so we can surface activity via the 'busy' flag.
local pending = {}
--- @type table<integer, true> bufnr -> true. Tracks which `pending` buffers have set 'busy'.
local pending_busy = {}

--- @private
--- Test-only: override the debounce window so tests can run faster.
--- @param ms integer
function M._set_debounce(ms)
  debounce_ms = ms
end

--- @private
--- @param bufnr integer
--- @return boolean
... (174 lines truncated)
</file>

<file path="runtime/lua/nvim/dir.lua">
--- @brief
--- Directory listing for `:edit <dir>`.

local api = vim.api

local M = {}

--- An entry rendered as one line in a listing buffer.
---@class (internal) nvim.dir.Entry
---@field name string
---@field dir boolean

--- Handler for `Provider.list`; call once with either an error or entries.
---@alias (private) nvim.dir.ListHandler fun(err: string?, entries: nvim.dir.Entry[]?)

--- Source adapter that provides entries and listing actions.
---@class (private) nvim.dir.Provider
--- Produce entries for this listing.
---@field list fun(buf: integer, name: string, cb: nvim.dir.ListHandler)
--- Open an entry from the listing.
---@field open fun(buf: integer, name: string, entry: nvim.dir.Entry)
--- Open the parent listing.
---@field open_parent fun(buf: integer, name: string)
--- Run provider-specific buffer setup after a successful open.
---@field init? fun(buf: integer, name: string)

---@class (private) nvim.dir.State
---@field gen integer
---@field err? string
---@field provider? nvim.dir.Provider
... (375 lines truncated)
</file>

<file path="runtime/lua/nvim/matchparen.lua">
local api = vim.api
local fn = vim.fn
local nvim_on = require('vim._core.util').nvim_on

local M = {}

local skip_names = { 'string', 'character', 'singlequote', 'escape', 'symbol', 'comment' }

---@param text string
---@param byte_col integer
---@return string
local function char_at(text, byte_col)
  if byte_col > #text then
    return ''
  end
  return text:sub(byte_col, byte_col + vim.str_utf_end(text, byte_col))
end

---@param text string
---@param byte_col integer
---@return string
local function char_before(text, byte_col)
  local end_col = math.min(byte_col - 1, #text)
  if end_col < 1 then
    return ''
  end
  return text:sub(end_col + vim.str_utf_start(text, end_col), end_col)
end

function M.enable()
... (289 lines truncated)
</file>

<file path="runtime/lua/nvim/spellfile.lua">
--- @brief
--- Asks the user to download missing spellfiles. The spellfile is written to
--- `stdpath('data') .. 'site/spell'` or the first writable directory in the
--- 'runtimepath'.
---
--- The plugin can be disabled by setting `g:loaded_spellfile_plugin = 1`.

local M = {}

--- @class nvim.spellfile.Info
--- @inlinedoc
--- @field files string[]
--- @field key string
--- @field lang string
--- @field encoding string
--- @field dir string

--- A table with the following fields:
--- @class nvim.spellfile.Config
---
--- The base URL from where the spellfiles are downloaded. Uses `g:spellfile_URL`
--- if it's set, otherwise https://ftp.nluug.nl/pub/vim/runtime/spell.
--- @field url string
---
--- Number of milliseconds after which the [vim.net.request()] times out.
--- (default: 15000)
--- @field timeout_ms integer
---
--- Whether to ask user to confirm download.
--- (default: `true`)
... (270 lines truncated)
</file>

<file path="runtime/lua/nvim/tutor.lua">
---@class nvim.TutorMetadata
---@field expect table<string, string|-1>

---@alias nvim.TutorExtmarks table<string, string>

---@type nvim.TutorExtmarks?
vim.b.tutor_extmarks = vim.b.tutor_extmarks

---@type nvim.TutorMetadata?
vim.b.tutor_metadata = vim.b.tutor_metadata

local sign_text_correct = '✓'
local sign_text_incorrect = '✗'
local tutor_mark_ns = vim.api.nvim_create_namespace('nvim.tutor.mark')
local tutor_hl_ns = vim.api.nvim_create_namespace('nvim.tutor.hl')

local M = {}

-- Extract inline comments into metadata.
-- Example: "This is wrong. [[This is right.]]" => { '1' = 'This is right.'}
function M.load_metadata()
  ---@type table<string, string|-1>
  local data = {}
  local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false)

  for i, line in ipairs(lines) do
    local text, expected_text = line:match('^(.-)%s%[%[(.-)%]%]$')

    if text then
      if expected_text == '-1' then
... (81 lines truncated)
</file>

<file path="runtime/lua/nvim/zip.lua">
local api = vim.api
local uv = vim.uv
local notify = require('vim._core.util').notify

local M = {}

---@return string?, string?
local function unzip()
  local command = vim.fn.exepath('unzip')
  if command == '' then
    return nil, 'unzip executable not found'
  end
  -- Windows searches the current directory before $PATH, so an archive could be opened with an
  -- `unzip` shipped next to it.
  if vim.fn.has('win32') == 1 then
    local dir = uv.fs_realpath(vim.fs.dirname(vim.fs.normalize(command)))
    local cwd = uv.fs_realpath(vim.fn.getcwd())
    if dir and cwd and dir == cwd then
      return nil, 'refusing to run unzip from the current directory'
    end
  end
  return command
end

--- Escape a path so that Info-ZIP matches it literally.
---
--- Info-ZIP matches `*`, `?`, and `[]` in a member selector itself, so this is not shell
--- quoting: passing argv already avoids the shell. For example, unescaped `a[a].txt`
--- silently reads `aa.txt`, and `a?.txt` matches every four-character name. A literal `[`
--- cannot be backslash-escaped, so it is wrapped in a class instead, as is a leading `-`,
... (575 lines truncated)
</file>

<file path="runtime/lua/uv/_meta.lua">
--- @meta
--- @class uv
local uv = {}
uv.constants = {}

--- # LibUV in Lua
---
--- The [luv][] project provides access to the multi-platform support library
--- [libuv][] in Lua code. It was primarily developed for the [luvit][] project as
--- the built-in `uv` module, but can be used in other Lua environments.
---
--- More information about the core libuv library can be found at the original
--- [libuv documentation page][].


--- # TCP Echo Server Example
---
--- Here is a small example showing a TCP echo server:
---
--- ```lua
--- local uv = require("luv") -- "luv" when stand-alone, "uv" in luvi apps
---
--- local server = uv.new_tcp()
--- assert(server:bind("127.0.0.1", 1337))
--- server:listen(128, function (err)
---   assert(not err, err)
---   local client = uv.new_tcp()
---   server:accept(client)
---   client:read_start(function (err, chunk)
---     assert(not err, err)
... (4592 lines truncated)
</file>

<file path="runtime/lua/vim/_core/ui2/cmdline.lua">
local ui = require('vim._core.ui2')
local api, fn = vim.api, vim.fn
---@class vim._core.ui2.cmdline
local M = {
  indent = 0, -- Current indent for block event.
  prompt = false, -- Whether a prompt is active; route to dialog regardless of ui.cfg.msg.target.
  dialog = false, -- Whether a dialog window was opened.
  srow = 0, -- Buffer row at which the current cmdline starts; > 0 in block mode.
  erow = 0, -- Buffer row at which the current cmdline ends; messages appended here in block mode.
  level = 0, -- Current cmdline level; 0 when inactive.
  wmnumode = 0, -- wildmenumode() when not using the pum, dialog position adjusted when toggled.
  --- @type integer Non-zero for entered expanded cmdline, incremented for each message emitted as a result of entered command to move and open messages in the pager.
  expand = 0,
}

--- Set the 'cmdheight' and cmdline window height. Reposition message windows.
---
---@param win integer Cmdline window in the current tabpage.
---@param hide boolean Whether to hide or show the window.
---@param height integer (Text)height of the cmdline window.
local function win_config(win, hide, height)
  if ui.cmdheight == 0 and api.nvim_win_get_config(win).hide ~= hide then
    api.nvim_win_set_config(win, { hide = hide, height = not hide and height or nil })
  elseif api.nvim_win_get_height(win) ~= height then
    api.nvim_win_resize(win, -1, height)
  end
  if vim.o.cmdheight ~= height then
    -- Avoid moving the cursor with 'splitkeep' = "screen", and altering the user
    -- configured value with noautocmd.
    vim._with({ noautocmd = true, o = { splitkeep = 'screen' } }, function()
... (174 lines truncated)
</file>

<file path="runtime/lua/vim/_core/ui2/messages.lua">
local api, fn, o = vim.api, vim.fn, vim.o
local nvim_on = require('vim._core.util').nvim_on
local ui = require('vim._core.ui2')
local more_msg = api.nvim_get_hl_id_by_name('MoreMsg') -- Highlight for the [+x] indicators.

---@alias Msg { extid: integer, timer: uv.uv_timer_t? }
---@class vim._core.ui2.messages
local M = {
  -- Message window. Used for regular messages with cfg.msg.target == 'msg'.
  -- Automatically resizes to the text dimensions up to a point, at which point
  -- only the most recent messages will fit and be shown. A timer is started for
  -- each message whose callback will remove the message from the window again.
  msg = {
    ids = {}, ---@type table<string|integer, Msg> List of visible messages.
    width = 1, -- Current width of the message window.
    prev_msg = '', -- Concatenated content of the previous message.
    prev_id = 0, ---@type string|integer Message id of the previous message.
    dupe = 0, -- Number of times message is repeated.
  },
  -- Cmdline message window. Used for regular messages with cfg.msg.target == 'cmd'.
  -- Also contains 'ruler', 'showcmd' and search_cmd/count messages as virt_text.
  -- Messages that don't fit the 'cmdheight' are first shown in an expanded cmdline.
  -- Otherwise, or after an expanded cmdline is closed upon the first keypress, the
  -- cmdline contains the messages with spilled and duplicate lines indicators.
  cmd = {
    ids = {}, ---@type table<string|integer, Msg> List of visible messages.
    msg_row = -1, -- Last row of message to distinguish for placing virt_text.
    last_col = o.columns, -- Crop text to start column of 'last' virt_text.
    last_msg = 0, -- Time an important message was printed that should not be overwritten.
    prev_msg = '', -- Concatenated content of the previous message.
... (787 lines truncated)
</file>

<file path="runtime/lua/vim/_core/cmdwin.lua">
--- @brief Command-line window (q:, q/, q?, c_CTRL-F).
---
--- Implements cmdwin as a normal window+buffer, instead of the legacy nested `state_enter` loop.
--- - On confirm, curline is fed back through the cmdline via |nvim_feedkeys()|.
--- - On cancel, curline is pre-filled in the ":" cmdline.

local M = {}

--- @class vim._core.cmdwin.State
--- @field type ':'|'/'|'?'
--- @field win integer   cmdwin window id
--- @field buf integer   cmdwin buffer id
--- @field caller_win integer  Window to return-to on close

--- @type vim._core.cmdwin.State?
local state = nil

--- @type table<string, boolean>
local cmdwin_types = { [':'] = true, ['/'] = true, ['?'] = true }

--- Fills the cmdwin buffer with the cmdline history.
--- @return boolean filled  Whether any lines were written.
--- @param buf integer
--- @param type ':'|'/'|'?'
local function fill_history(buf, type)
  local histname = type == ':' and 'cmd' or 'search'
  local n = vim.fn.histnr(histname)
  if n <= 0 then -- May be -1 if history is empty.
    return false
  end
... (177 lines truncated)
</file>

<file path="runtime/lua/vim/_core/defaults.lua">
-- Default user-commands, autocmds, mappings, menus.

local nvim_on = require('vim._core.util').nvim_on

--- Default user commands
do
  vim.api.nvim_create_user_command('Inspect', function(cmd)
    if cmd.bang then
      vim.print(vim.inspect_pos())
    else
      vim.show_pos()
    end
  end, { desc = 'Inspect highlights and extmarks at the cursor', bang = true })

  vim.api.nvim_create_user_command('InspectTree', function(cmd)
    local opts = { lang = cmd.fargs[1] }

    if cmd.mods ~= '' or cmd.count ~= 0 then
      local count = cmd.count ~= 0 and cmd.count or ''
      local new = cmd.mods ~= '' and 'new' or 'vnew'

      opts.command = ('%s %s%s'):format(cmd.mods, count, new)
    end

    vim.treesitter.inspect_tree(opts)
  end, { desc = 'Inspect treesitter language tree for buffer', count = true, nargs = '?' })

  vim.api.nvim_create_user_command('EditQuery', function(cmd)
    vim.treesitter.query.edit(cmd.fargs[1])
  end, {
... (1128 lines truncated)
</file>

<file path="runtime/lua/vim/_core/editor.lua">
local tointeger = vim._tointeger

-- Nvim-Lua stdlib: the `vim` module (:help lua-stdlib)
--

-- These are for loading runtime modules lazily since they aren't available in
-- the nvim binary as specified in executor.c
for k, v in pairs({
  treesitter = true,
  filetype = true,
  loader = true,
  func = true,
  F = true,
  log = true,
  lsp = true,
  hl = true,
  diagnostic = true,
  keymap = true,
  ui = true,
  health = true,
  secure = true,
  snippet = true,
  pack = true,
  async = true,
  _watch = true,
  net = true,
  pos = true,
  range = true,
}) do
  vim._submodules[k] = v
... (1472 lines truncated)
</file>

<file path="runtime/lua/vim/_core/ex_cmd.lua">
local api = vim.api
local fs = vim.fs
local time = require('vim._core.time')
local util = require('vim._core.util')
local uv = vim.uv
local N_ = vim.fn.gettext

--- Parsed ex command arguments for builtin commands, passed from C via `nlua_call_excmd`.
--- Inherits fields from user command args: name, args, bang, line1, line2, range, count, reg, smods.
--- Note: For builtin commands `name` is the canonical command name.
--- @class vim._core.ExCmdArgs : vim.api.keyset.create_user_command.command_args

local M = {}

--- Apply the `:filter[!] /pattern/` modifier to a single message. See also `message_filtered()`.
---
--- @param filter { pattern: string, force: boolean }? ":filter" mod.
--- @param msg string Message to test.
--- @return boolean # True if `msg` should be skipped (not displayed).
function M.filter(filter, msg)
  if not filter or filter.pattern == '' then
    return false
  end
  local match = vim.regex(filter.pattern):match_str(msg) ~= nil
  return match == filter.force
end

--- @return string[]
local function get_client_names()
  return vim
... (376 lines truncated)
</file>

<file path="runtime/lua/vim/_core/exmode.lua">
--- Ex mode.
--- - `run()`: non-interactive (`nvim -es`): executes stdin as Ex commands.
--- - `open()`: interactive (`[count]q:`, `nvim -e`), a keep-open "cmdwin" REPL.

local api = vim.api
local N_ = vim.fn.gettext
local util = require('vim._core.util')

local M = {}

--- Commands that end Ex mode before executing (in the caller window).
local exit_cmds = {
  cquit = true,
  exit = true,
  quit = true,
  quitall = true,
  restart = true,
  view = true,
  visual = true,
  wq = true,
  wqall = true,
  xall = true,
  xit = true,
}

--- Continuation lines (of a multiline cmd), for the statuscolumn.
--- @type table<integer, true>
local cont_lines = {}

--- Non-interactive "script mode" ("nvim -es", fka "Ex-mode", but POSIX behavior was dropped):
... (195 lines truncated)
</file>

<file path="runtime/lua/vim/_core/exrc.lua">
-- For 'exrc' and related functionality.

local files = vim.fs.find({ '.nvim.lua', '.nvimrc', '.exrc' }, {
  type = 'file',
  upward = true,
  limit = math.huge,
})
for _, file in ipairs(files) do
  local trusted = vim.secure.read(file) --[[@as string|nil]]
  if trusted then
    if vim.endswith(file, '.lua') then
      assert(loadstring(trusted, '@' .. file))()
    else
      vim.api.nvim_exec2(trusted)
    end
  end
  -- If the user unset 'exrc' in the current exrc then stop searching
  if not vim.o.exrc then
    break
  end
end
</file>

<file path="runtime/lua/vim/_core/help.lua">
local M = {}

local echo_err = require('vim._core.util').echo_err
local fs = require('vim.fs')

local tag_exceptions = {
  -- Interpret asterisk (star, '*') literal but name it 'star'
  ['*'] = 'star',
  ['g*'] = 'gstar',
  ['[*'] = '[star',
  [']*'] = ']star',
  [':*'] = ':star',
  ['/*'] = '/star',
  ['/\\*'] = '/\\\\star',
  ['\\\\star'] = '/\\\\star',
  ['"*'] = 'quotestar',
  ['**'] = 'starstar',
  ['cpo-*'] = 'cpo-star',

  -- Literal question mark '?'
  ['?'] = '?',
  ['??'] = '??',
  [':?'] = ':?',
  ['?<CR>'] = '?<CR>',
  ['g?'] = 'g?',
  ['g?g?'] = 'g?g?',
  ['g??'] = 'g??',
  ['-?'] = '-?',
  ['q?'] = 'q?',
  ['v_g?'] = 'v_g?',
... (566 lines truncated)
</file>

<file path="runtime/lua/vim/_core/log.lua">
local M = {}

--- Checks that the logfile is accessible.
function M.check_log_file()
  if vim.fn.mode() == 'c' then -- Ex mode
    return
  end

  local wanted = vim.fn.getenv('__NVIM_LOG_FILE_WANT')
  if not wanted or wanted == vim.NIL then
    return
  end

  local actual = vim.fn.getenv('NVIM_LOG_FILE')

  local msg --[[@type string]]
  if not actual or actual == vim.NIL or actual == '' then
    msg = ('log: %q not accessible, logging disabled (stderr)'):format(wanted)
  elseif actual ~= wanted then
    msg = ('log: %q not accessible, logging to: %q'):format(wanted, actual)
  else
    return
  end

  vim.defer_fn(function()
    vim.notify(msg, vim.log.levels.WARN)
  end, 100)
end

return M
... (1 lines truncated)
</file>

<file path="runtime/lua/vim/_core/marks.lua">
--- Marks functionality
--- - |:marks| command/completion

local api = vim.api
local util = require('vim._core.util')
local N_ = vim.fn.gettext

local M = {}

--- Names of the namespaces that have extmarks in the current buffer, sorted.
--- @return string[]
local function buf_namespaces()
  local names = {} ---@type string[]
  for name, id in pairs(api.nvim_get_namespaces()) do
    if #api.nvim_buf_get_extmarks(0, id, 0, -1, { limit = 1 }) > 0 then
      names[#names + 1] = name
    end
  end
  table.sort(names)
  return names
end

--- Completion for ":marks {arg}":
--- - set marks (buffer-local and global)
--- - extmark namespaces (buffer-local)
--- @return string[]
function M.complete()
  local names = {} ---@type string[]
  for _, list in ipairs({ vim.fn.getmarklist(api.nvim_get_current_buf()), vim.fn.getmarklist() }) do
    for _, m in ipairs(list) do
... (145 lines truncated)
</file>

<file path="runtime/lua/vim/_core/mcursor.lua">
--- Multicursor:
--- - Display: kitty cursors if supported (`detect()`), else "highlight" cursors (hl-MCursor).
---   https://github.com/kovidgoyal/kitty/blob/master/docs/multiple-cursors-protocol.rst
--- - Commands: `gQ`, `]C`, `g CTRL-A`.
--- - Script API: `active()`.

local M = {}

--- Extmarks tracking multicursor positions.
local ns = vim.api.nvim_create_namespace('nvim.multicursor')
--- Selection-end cursors, during a Visual selection.
local vcur_ns = vim.api.nvim_create_namespace('nvim.multicursor.cursor')
--- Kitty cursors protocol: host terminal supports the protocol.
local tty_cursors = false
local last_seq = '' ---@type string
local pending = false
--- Max CSI params in one terminal seq (kitty: 256). #41969
local max_csi_params = 256

--- Gets the operative mcursors namespace, depending on the current state.
--- @param buf integer
local function display_ns(buf)
  if #vim.api.nvim_buf_get_extmarks(buf, vcur_ns, 0, -1, { limit = 1 }) > 0 then
    return vcur_ns
  end
  return ns
end

--- Absolute (screen) coordinates ("2:row:col", 1-indexed) of mcursors in each visible window.
--- Off-screen cursors are omitted.
... (268 lines truncated)
</file>

<file path="runtime/lua/vim/_core/options.lua">
--- @brief Nvim Lua provides an interface or "bridge" to Vimscript variables and
--- functions, and editor commands and options.
---
--- Objects passed over this bridge are COPIED (marshalled): there are no
--- "references". |lua-guide-variables| For example, using `vim.fn.remove()` on
--- a Lua list copies the list object to Vimscript and does NOT modify the Lua
--- list:
---
--- ```lua
--- local list = { 1, 2, 3 }
--- vim.fn.remove(list, 0)
--- vim.print(list)  --> "{ 1, 2, 3 }"
--- ```

--- @brief <pre>help
--- vim.call({func}, {...})                                           *vim.call()*
---     Invokes |vim-function| or |user-function| {func} with arguments {...}.
---     See also |vim.fn|.
---     Equivalent to: >lua
---         vim.fn[func]({...})
--- <
--- vim.cmd({command})
---     See |vim.cmd()|.
---
--- vim.fn.{func}({...})                                                  *vim.fn*
---     Invokes |vim-function| or |user-function| {func} with arguments {...}.
---     To call autoload functions, use the syntax: >lua
---         vim.fn['some#function']({...})
--- <
---     Unlike vim.api.|nvim_call_function()| this converts directly between Vim
... (516 lines truncated)
</file>

<file path="runtime/lua/vim/_core/proc.lua">
-- OS/process utils.

local M = {}

--- Counts (approximate) open file descriptors for this process. Works on Linux/macOS/BSD.
---@return integer? # Number of open fds, or nil if `/dev/fd` failed (fds exhausted, or unavailable/Windows).
function M.count_open_fds()
  local n = 0
  for _, _, err in vim.fs.dir('/dev/fd', { err = true }) do
    -- If `/dev/fd` scan failed (e.g. EMFILE when fds exhausted), count would be misleading.
    if err then
      return nil
    end
    n = n + 1
  end
  -- Discount the scan's own descriptor.
  return math.max(0, n - 1)
end

return M
</file>

<file path="runtime/lua/vim/_core/server.lua">
-- For "--listen", ":restart", and related remote/server functionality.

local util = require('vim._core.util')

local M = {}

--- Called by builtin serverlist(). Returns the combined server list (own + peers).
---
---@class vim.ServerInfo
---@field addr string Server address (socket path, named pipe, or TCP host:port).
---@field pid integer PID of the Nvim process.
---@field own boolean True if this server belongs to the current Nvim instance.
---@field active integer Timestamp of last user activity.

--- @param opts? table Options:
---              - opts.peer (boolean): If true, also discover peer servers.
---              - opts.info (boolean): If true, return a list of |vim.ServerInfo| dicts
---                instead of a list of addresses. Implies peer=true.
--- @param addrs string[] Internal ("own") addresses, from server_address_list.
--- @return string[]|vim.ServerInfo[]
function M.serverlist(opts, addrs)
  if type(opts) ~= 'table' then
    return addrs
  end

  local want_info = opts.info == true
  if opts.peer ~= true and not want_info then
    return addrs
  end

... (193 lines truncated)
</file>

<file path="runtime/lua/vim/_core/shared.lua">
-- Functions shared by Nvim and its test-suite.
--
-- These are "pure" lua functions not depending of the state of the editor.
-- Thus they should always be available whenever nvim-related lua code is run,
-- regardless if it is code in the editor itself, or in worker threads/processes,
-- or the test suite. (Eventually the test suite will be run in a worker process,
-- so this wouldn't be a separate case to consider)

---@nodoc
_G.vim = _G.vim or {} --[[@as table]]
-- TODO(lewis6991): better fix for flaky luals

---@generic T
---@param orig T
---@param cache? table<any,any>
---@return T
local function deepcopy(orig, cache)
  if orig == vim.NIL then
    return vim.NIL
  elseif type(orig) == 'userdata' or type(orig) == 'thread' then
    error('Cannot deepcopy object of type ' .. type(orig))
  elseif type(orig) ~= 'table' then
    return orig
  end

  --- @cast orig table<any,any>

  if cache and cache[orig] then
    return cache[orig]
  end
... (1745 lines truncated)
</file>

<file path="runtime/lua/vim/_core/spell.lua">
local N_ = vim.fn.gettext

local M = {}

--- @class vim._core.spell.Suggestion
--- @field word string The suggested replacement.
--- @field extra? string Text replaced when wider than the bad span.
--- @field score integer Primary score.
--- @field altscore? integer Secondary score (only set when 'spellsuggest' contains "double" or "best").
--- @field salscore? boolean True if the score came from sound-alike comparison (only set alongside `altscore`).

--- Implements `spell_suggest()` (`z=`) via vim.ui.select().
---
--- async: returns immediately, the chosen suggestion is applied later
--- by re-running `:normal! [idx]z=` from `on_choice`.
---
--- @param items vim._core.spell.Suggestion[]
--- @param bad string The misspelled word being replaced.
function M.select_suggest(items, bad)
  vim.ui.select(items, {
    prompt = N_('Change "%s" to:'):format(bad),
    kind = 'spell',
    format_item = function(s)
      local extra = s.extra and (' < "' .. s.extra .. '"') or ''
      local score = ''
      if vim.o.verbose > 0 then
        score = s.altscore
            and (' (%s%d - %d)'):format(s.salscore and 's ' or '', s.score, s.altscore)
          or (' (%d)'):format(s.score)
      end
... (14 lines truncated)
</file>

<file path="runtime/lua/vim/_core/stringbuffer.lua">
-- Basic shim for LuaJIT's stringbuffer.
-- Note this does not implement the full API.
-- This is intentionally internal-only. If we want to expose it, we should
-- reimplement this a userdata and ship it as `string.buffer`
-- (minus the FFI stuff) for Lua 5.1.
local M = {}

local has_strbuffer, strbuffer = pcall(require, 'string.buffer')

if has_strbuffer then
  M.new = strbuffer.new

  -- Lua 5.1 does not have __len metamethod so we need to provide a len()
  -- function to use instead.

  --- @param buf vim._core.stringbuffer
  --- @return integer
  function M.len(buf)
    return #buf
  end

  return M
end

--- @class vim._core.stringbuffer.ptr
--- @field [integer] integer

--- @class vim._core.stringbuffer
--- @field private ptr vim._core.stringbuffer.ptr
--- @field private buf string[]
... (105 lines truncated)
</file>

<file path="runtime/lua/vim/_core/swapfile.lua">
local api = vim.api
local N_ = vim.fn.gettext

local M = {}

--- Renders a swap file as a multi-line block:
--- ```
--- %home%foo%bar%README.md.swl
---              dated: Thu Apr 23 17:25:52 2026
---          file name: ~foo/bar/README.md
---           modified: no
---          user name: justin   host name: minime
---         process ID: 10521 (STILL RUNNING)
--- ```
--- @param path string
--- @return string
local function format_swap(path)
  local info = vim.fn.swapinfo(path)
  local mtime = info.mtime and vim.fn.strftime('%a %b %d %H:%M:%S %Y', info.mtime) or '?'
  local lines = {
    vim.fs.basename(path),
    ('             dated: %s'):format(mtime),
  }
  if info.error then
    lines[#lines + 1] = ('         [%s]'):format(info.error)
  else
    lines[#lines + 1] = ('         file name: %s'):format(
      info.fname == '' and '[No Name]' or info.fname
    )
    lines[#lines + 1] = ('          modified: %s'):format(info.dirty == 1 and 'YES' or 'no')
... (57 lines truncated)
</file>

<file path="runtime/lua/vim/_core/system.lua">
local uv = vim.uv

--- @class vim.SystemOpts
--- @inlinedoc
---
--- Set the current working directory for the sub-process.
--- @field cwd? string
---
--- Set environment variables for the new process. Inherits the current environment with `NVIM` set
--- to |v:servername|.
--- @field env? table<string,string|number>
---
--- `env` defines the job environment exactly, instead of merging current environment. Note: if
--- `env` is `nil`, the current environment is used but without `NVIM` set.
--- @field clear_env? boolean
---
--- If `true`, then a pipe to stdin is opened and can be written to via the `write()` method to
--- SystemObj. If `string` or `string[]` then will be written to stdin and closed.
--- @field stdin? string|string[]|true
---
--- Handle output from stdout.
--- (Default: `true`)
--- @field stdout? fun(err:string?, data: string?)|boolean
---
--- Handle output from stderr.
--- (Default: `true`)
--- @field stderr? fun(err:string?, data: string?)|boolean
---
--- Handle stdout and stderr as text. Normalizes line endings by replacing `\r\n` with `\n`.
--- @field text? boolean
... (512 lines truncated)
</file>

<file path="runtime/lua/vim/_core/table.lua">
-- Basic shim for LuaJIT's table.new and table.clear.
local has_new, new = pcall(require, 'table.new')
local has_clear, clear = pcall(require, 'table.clear')

local M = {}

if not has_new then
  new = function(_narr, _nrec)
    return {}
  end
end

if not has_clear then
  --- @param tab table
  clear = function(tab)
    for k in pairs(tab) do
      tab[k] = nil
    end
  end
end

---@cast new fun(narr: integer, nrec: integer): table
---@cast clear fun(tab: table)
M.new = new
M.clear = clear

return M
</file>

<file path="runtime/lua/vim/_core/tag.lua">
local N_ = vim.fn.gettext

local M = {}

--- @class vim._core.tag.Match
--- @field tag string
--- @field kind? string
--- @field pri string  Priority code, e.g. "FSC" — see `:h tag-priority`.
--- @field file string
--- @field extra? string
--- @field cur boolean True if this is the currently-active tagstack match.

--- Implements `do_tag()` (`:tselect`, ambiguous `:tag`, …) via vim.ui.select().
---
--- async: returns immediately, the chosen tag is applied later by re-running
--- `:[mods] [idx]tag {tagname}` (or `stag`) from `on_choice`.
---
--- @param eap vim._core.ExCmdArgs Original :tselect/:stselect/… invocation.
--- @param extra { items: vim._core.tag.Match[], tagname: string }
function M.select_tag(eap, extra)
  local items, tagname = extra.items, extra.tagname
  -- :stag/:stselect/:stjump need a split when re-invoked.
  local stag = eap.name:sub(1, 1) == 's'
  -- `eap.mods` is the raw modifier string (e.g. ":vert silent").
  local mods_str = eap.mods ~= '' and (eap.mods .. ' ') or ''

  local taglen = 18
  for _, m in ipairs(items) do
    taglen = math.max(taglen, vim.fn.strdisplaywidth(m.tag) + 2)
  end
... (29 lines truncated)
</file>

<file path="runtime/lua/vim/_core/time.lua">
local N_ = vim.fn.gettext

local M = {}

--- @param seconds_in_unit integer How many seconds make up the unit.
--- @param singular string The singular name of the unit. ("1 second")
--- @param fplural string The plural name of the unit, to format. ("%s seconds")
--- @param times string[] Working list of uptime strings.
--- @param remaining integer Remaining time, in seconds.
--- @return integer remaining Remaining time.
local function time_part(seconds_in_unit, singular, fplural, times, remaining)
  local unit = math.floor(remaining / seconds_in_unit)
  if unit ~= 0 or #times ~= 0 or seconds_in_unit == 1 then
    local display = unit == 1 and singular or fplural:format(unit)
    times[#times + 1] = display
  end
  return remaining % seconds_in_unit
end

--- Display seconds in a pretty form (e.g. "1 hour, 24 minutes, 13 seconds").
---
--- @param seconds integer Time in seconds.
--- @return string time Pretty representation of the time.
function M.fmt_rtime(seconds)
  local times = {}
  seconds = time_part(86400, N_('1 day'), N_('%s days'), times, seconds)
  seconds = time_part(3600, N_('1 hour'), N_('%s hours'), times, seconds)
  seconds = time_part(60, N_('1 minute'), N_('%s minutes'), times, seconds)
  seconds = time_part(1, N_('1 second'), N_('%s seconds'), times, seconds)
  assert(seconds == 0)
... (6 lines truncated)
</file>

<file path="runtime/lua/vim/_core/ui.lua">
local M = {}

--- Wait for |vim.ui.select()| and return the selected index. The default vim.ui.select impl
--- (inputlist()) is synchronous, but this also handles async pickers (fzf-lua, telescope, …).
---
--- @param items table Items to choose from.
--- @param opts table Forwarded to |vim.ui.select()|.
--- @return integer? # 1-based index of the chosen item, or nil if cancelled/interrupted.
function M.select_blocking(items, opts)
  local choice ---@type integer?
  local done = false
  vim.ui.select(items, opts or {}, function(_, idx)
    choice = idx
    done = true
  end)
  -- vim.wait returns false on timeout (math.huge means never) or interrupt (-2).
  vim.wait(math.huge, function()
    return done
  end)
  return choice
end

return M
</file>

<file path="runtime/lua/vim/_core/ui2.lua">
--- @brief
---
--- WARNING: This is an experimental feature intended to replace the builtin message + cmdline
--- presentation layer.
---
--- To enable this feature (default opts shown, see also 'messagesopt'):
--- ```lua
--- require('vim._core.ui2').enable({
---   enable = true, -- Whether to enable or disable the UI.
---   msg = { -- Options related to the message module.
---     ---@type string|table<string, 'cmd'|'msg'|'pager'> Default message target
---     ---or table mapping |ui-messages| kinds, triggers and IDs to a target.
---     ---Table keys are matched as a Lua pattern to the message ID. 'default'
---     ---mapping applies to any omitted kind: { default = 'cmd', progress = 'msg' }.
---     targets = 'cmd',
---     dialog = { -- Options related to dialog window.
---       height = 0.5, -- Maximum height.
---     },
---     msg = { -- Options related to msg window.
---       height = 0.5, -- Maximum height.
---     },
---     pager = { -- Options related to message window.
---       height = 0.999, -- Maximum height.
---     },
---   },
--- })
--- ```
---
--- ui2 behavior is also configured by these 'messagesopt' items: "pager", "timeout".
--- Example:
... (266 lines truncated)
</file>

<file path="runtime/lua/vim/_core/util.lua">
-- Nursery for random things that may later find their way into stdlib if they mature.

local M = {}

-- Generated from async.nvim/lua/async/_errors.lua: start
local nil_error = 'error(nil)'

--- Normalize a failed Lua operation for error slots where `nil` means success.
--- @param err any
--- @return any
--- @private
function M._normalize_error(err)
  return err == nil and nil_error or err
end

--- Convert an error to a string without letting its metamethod interrupt cleanup.
--- @param err any
--- @return string
--- @private
function M._stringify_error(err)
  local ok, message = pcall(tostring, err)
  return ok and message or '<unprintable error>'
end
-- Generated from async.nvim/lua/async/_errors.lua: end

--- Adds one or more blank lines above or below the cursor.
--- @param above? boolean Place blank line(s) above the cursor
local function add_blank(above)
  local offset = above and 1 or 0
  local repeated = vim.fn['repeat']({ '' }, vim.v.count1)
... (222 lines truncated)
</file>

<file path="runtime/lua/vim/_core/vimfn.lua">
-- Lua implementations of "vimfn" builtin functions (via `func_lua`).
--
-- Functions defined here are pure Lua, they don't have any explicit C impl, so they are named with
-- the "f_xx" convention, for discoverability.

local M = {}

--- Returns the hostname of the machine.
--- @return string
function M.f_hostname()
  return vim.uv.os_gethostname()
end

--- Returns all environment variables as a dictionary.
--- @return table<string, string>
function M.f_environ()
  local env = vim.uv.os_environ() ---@type table<string, string>
  if vim.fn.has('win32') == 1 then -- Vim/legacy behavior: force uppercase keys on Windows. #39443
    local upper = {} --- @type table<string, string>
    for k, v in pairs(env) do
      upper[k:upper()] = v
    end
    return upper
  end
  return env
end

return M
</file>

<file path="runtime/lua/vim/_ftplugin/lua.lua">
local M = {}

--- @param module string
---@return string
function M.includeexpr(module)
  module = module:gsub('%.', '/')

  local root = vim.fs.root(vim.api.nvim_buf_get_name(0), 'lua') or vim.fn.getcwd()
  for _, fname in ipairs { module, vim.fs.joinpath(root, 'lua', module) } do
    for _, suf in ipairs { '.lua', '/init.lua' } do
      local path = fname .. suf
      if vim.uv.fs_stat(path) then
        return path
      end
    end
  end

  local modInfo = vim.loader.find(module)[1]
  return modInfo and modInfo.modpath or module
end

return M
</file>

<file path="runtime/lua/vim/_meta/api_keysets_extra.lua">
--- @meta _
-- This file is NOT generated, edit it directly. See also _meta/api_keysets.gen.lua.

error('Cannot require a meta file')

--- Extra types we don't define keysets for.

--- @class vim.api.keyset.extmark_details
--- @field ns_id integer
--- @field right_gravity boolean
---
--- @field end_row? integer
--- @field end_col? integer
--- @field end_right_gravity? integer
---
--- @field priority? integer
---
--- @field undo_restore? false
--- @field invalidate? true
--- @field invalid? true
---
--- @field hl_group? string
--- @field hl_eol? boolean
---
--- @field conceal? string|false
--- @field spell? boolean
--- @field ui_watched? boolean
--- @field url? string
--- @field hl_mode? string
---
... (253 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/api_keysets.gen.lua">
--- @meta _
--
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
--
error('Cannot require a meta file')

--- @class vim.api.keyset.buf_attach
--- @field on_bytes? fun(_: "bytes", bufnr: integer, changedtick: integer, start_row: integer, start_col: integer, start_byte: integer, old_end_row: integer, old_end_col: integer, old_end_byte: integer, new_end_row: integer, new_end_col: integer, new_end_byte: integer): boolean?
--- @field on_changedtick? fun(_: "changedtick", bufnr: integer, changedtick: integer)
--- @field on_detach? fun(_: "detach", bufnr: integer)
--- @field on_lines? fun(_: "lines", bufnr: integer, changedtick: integer, first: integer, last_old: integer, last_new: integer, byte_count: integer, deleted_codepoints?: integer, deleted_codeunits?: integer): boolean?
--- @field on_reload? fun(_: "reload", bufnr: integer)
--- @field preview? boolean
--- @field utf_sizes? boolean

--- @class vim.api.keyset.buf_delete
--- @field force? boolean
--- @field unload? boolean

--- @class vim.api.keyset.clear_autocmds
--- @field buf? integer
--- @field buffer? integer
--- @field event? vim.api.keyset.events|vim.api.keyset.events[]
--- @field group? integer|string
--- @field pattern? string|string[]

--- @class vim.api.keyset.cmd
--- @field addr? "line"|"arg"|"buf"|"load"|"win"|"tab"|"qf"|"none"|"?"
--- @field args? (integer|string|boolean)[]
--- @field bang? boolean
... (496 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/api.gen.lua">
--- @meta _
--
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
--
error('Cannot require a meta file')

--- This file embeds vimdoc as the function descriptions
--- so ignore any doc related errors.
--- @diagnostic disable: undefined-doc-name,luadoc-miss-symbol

vim.api = {}

--- WARNING: This feature is experimental/unstable.
---
--- @param buf integer
--- @param keys boolean
--- @param dot boolean
--- @return string
function vim.api.nvim__buf_debug_extmarks(buf, keys, dot) end

--- WARNING: This feature is experimental/unstable.
---
--- @param buf integer
--- @return table<string,any>
function vim.api.nvim__buf_stats(buf) end

--- WARNING: This feature is experimental/unstable.
---
--- Records the cmdwin scratchbuf and type, or clears both when type="" / buf=0. Internal use only.
---
... (2612 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/base64.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

vim.base64 = {}

--- Encode {str} using Base64.
---
--- @param str string String to encode
--- @return string : Encoded string
function vim.base64.encode(str) end

--- Decode a Base64 encoded string.
---
--- @param str string Base64 encoded string
--- @return string : Decoded string
function vim.base64.decode(str) end
</file>

<file path="runtime/lua/vim/_meta/builtin.lua">
---@meta
-- This file is NOT generated, edit it directly.
-- luacheck: no unused args

error('Cannot require a meta file')

--- @brief <pre>help
--- vim.api.{func}({...})                                                    *vim.api*
---     Invokes Nvim |API| function {func} with arguments {...}.
---     Example: call the "nvim_get_current_line()" API function: >lua
---         print(tostring(vim.api.nvim_get_current_line()))
---
--- vim.NIL                                                                  *vim.NIL*
---     Special value representing NIL in |RPC| and |v:null| in Vimscript
---     conversion, and similar cases. Lua `nil` cannot be used as part of a Lua
---     table representing a Dictionary or Array, because it is treated as
---     missing: `{"foo", nil}` is the same as `{"foo"}`.
---
--- vim.type_idx                                                        *vim.type_idx*
---     Type index for use in |lua-special-tbl|. Specifying one of the values from
---     |vim.types| allows typing the empty table (it is unclear whether empty Lua
---     table represents empty list or empty array) and forcing integral numbers
---     to be |Float|. See |lua-special-tbl| for more details.
---
--- vim.val_idx                                                          *vim.val_idx*
---     Value index for tables representing |Float|s. A table representing
---     floating-point value 1.0 looks like this: >lua
---         {
---           [vim.type_idx] = vim.types.float,
---           [vim.val_idx] = 1.0,
... (241 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/events.lua">
--- @meta
-- This file is NOT generated, edit it directly.
--
-- See also `vim.api.keyset.events` in `api_keysets.gen.lua`.
error('Cannot require a meta file')

--- Data for the CmdAtom event.
--- @class vim.event.cmdatom.data
--- @field atoms? vim.event.cmdatom.data[] Subatoms of a composite (mapping, Visual sequence).
--- @field changed boolean Changed the buffer.
--- @field cmd? string Command/motion/object name ("w", "f", "iw", "gJ").
--- @field cmdarg? string Operand of `cmd` ("fx" => "x").
--- @field count? integer Effective count.
--- @field keys? string Resolved keysequence, raw bytes. Replay via `feedkeys(keys, 'n')`. Nil: lossy capture, replay via `feedkeys(lhs, 'm')` instead. Empty: unreplayable.
--- @field lhs string High-level user input: mapping LHS + any payload it read, or macro register ("gj", "ds'", "@q"). Raw bytes.
--- @field motionforce? 'v'|'V'|'<C-V>' forced-motion type.
--- @field moved? boolean Moved the cursor.
--- @field operator? string Operator name ("d", "g~", "g@"). key-notation.
--- @field pos? [integer,integer] Cursor before the action: 1-indexed row, 0-indexed column.
--- @field reg? string Register name.
--- @field text? string Inserted text, or the Ex/search cmdline.
--- @field type 'excmd'|'insert'|'jump'|'mapping'|'motion'|'mouse'|'normal'|'operator'|'scroll'|'visual'
--- @field undoseq? integer Undo state after the action (`undotree().seq_cur`). Decreases on undo.

--- @class vim.event.lspattach.data
--- @field client_id integer

--- @class vim.event.lspdetach.data
--- @field client_id integer

... (53 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/json.lua">
---@meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

---@nodoc
vim.json = {}

-- luacheck: no unused args

--- @class vim.json.decode.Opts
--- @inlinedoc
---
--- Convert JSON "null" in objects/arrays to Lua `nil` instead of |vim.NIL|.
--- (default: `nil`)
--- @field luanil? { object?: boolean, array?: boolean }
---
--- Allows JavaScript-style comments within JSON data. Comments are treated as whitespace and may
--- appear anywhere whitespace is valid in JSON. Supports single-line comments beginning with '//'
--- and block comments enclosed with '/*' and '*/'.
--- (default: `false`)
--- @field skip_comments? boolean

--- @class vim.json.encode.Opts
--- @inlinedoc
---
--- Escape slash characters "/" in string values.
--- (default: `false`)
--- @field escape_slash? boolean
---
--- If non-empty, each value in a JSON object or array starts on a new line and is prefixed with
... (53 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/lpeg.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

-- These types were taken from https://github.com/LuaCATS/lpeg
-- (based on revision 33f4ff5343a64cf613a0634d70092fbc2b64291b)
-- with types being renamed to include the vim namespace and with some descriptions made less verbose.

--- @brief <pre>help
--- LPeg is a pattern-matching library for Lua, based on Parsing Expression
--- Grammars (PEGs). https://bford.info/packrat/
---
---                                                  *lua-lpeg* *vim.lpeg.Pattern*
--- The LPeg library for parsing expression grammars is included as `vim.lpeg`
--- (https://www.inf.puc-rio.br/~roberto/lpeg/).
---
--- In addition, its regex-like interface is available as |vim.re|
--- (https://www.inf.puc-rio.br/~roberto/lpeg/re.html).
---
--- </pre>

vim.lpeg = {}

--- @nodoc
--- @class vim.lpeg.Pattern
--- @operator len: vim.lpeg.Pattern
--- @operator unm: vim.lpeg.Pattern
--- @operator add(vim.lpeg.Pattern): vim.lpeg.Pattern
--- @operator sub(vim.lpeg.Pattern): vim.lpeg.Pattern
--- @operator mul(vim.lpeg.Pattern): vim.lpeg.Pattern
... (324 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/misc.lua">
---@meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

-- luacheck: no unused args

--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
--- See also |vim.fn|.
--- Equivalent to:
---
--- ```lua
--- vim.fn[func]({...})
--- ```
---
--- @param func string
--- @param ... any
--- @return any
function vim.call(func, ...) end

--- Renamed to `vim.text.diff`, remove at Nvim 1.0
---@deprecated
---@param a string First string to compare
---@param b string Second string to compare
---@param opts? vim.text.diff.Opts
---@return string|integer[][]? # See {opts.result_type}. `nil` if {opts.on_hunk} is given.
function vim.diff(a, b, opts) end
</file>

<file path="runtime/lua/vim/_meta/mpack.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

-- luacheck: no unused args

---@nodoc
vim.mpack = {}

--- @brief
---
--- This module provides encoding and decoding of Lua objects to and
--- from msgpack-encoded strings. Supports |vim.NIL| and |vim.empty_dict()|.

--- Decodes (or "unpacks") the msgpack-encoded {str} to a Lua object.
--- @param str string
--- @return any
function vim.mpack.decode(str) end

--- Encodes (or "packs") Lua object {obj} as msgpack in a Lua string.
--- @param obj any
--- @return string
function vim.mpack.encode(obj) end
</file>

<file path="runtime/lua/vim/_meta/options.gen.lua">
--- @meta _
--
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
--
error('Cannot require a meta file')

---@class vim.bo
---@field [integer] vim.bo
vim.bo = vim.bo

---@class vim.wo
---@field [integer] vim.wo
vim.wo = vim.wo

--- Allow CTRL-_ in Insert mode.  This is default off, to avoid that users
--- that accidentally type CTRL-_ instead of SHIFT-_ get into reverse
--- Insert mode, and don't know how to get out.  See 'revins'.
---
--- @type boolean
vim.o.allowrevins = false
vim.o.ari = vim.o.allowrevins
vim.go.allowrevins = vim.o.allowrevins
vim.go.ari = vim.go.allowrevins

--- Tells Vim what to do with characters with East Asian Width Class
--- Ambiguous (such as Euro, Registered Sign, Copyright Sign, Greek
--- letters, Cyrillic letters).
---
--- There are currently two possible values:
--- "single":	Use the same width as characters in US-ASCII.  This is
... (8581 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/re.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

-- Documentations and Lua types for vim.re (vendored re.lua, lpeg-1.1.0)
-- https://www.inf.puc-rio.br/~roberto/lpeg/re.html
--
-- Copyright © 2007-2023 Lua.org, PUC-Rio.
-- See 'lpeg.html' for license

--- @brief
--- The `vim.re` module provides a conventional regex-like syntax for pattern usage within LPeg
--- |vim.lpeg|. (Unrelated to |vim.regex| which provides Vim |regexp| from Lua.)
---
--- See https://www.inf.puc-rio.br/~roberto/lpeg/re.html for the original documentation including
--- regex syntax and examples.

--- Compiles the given {string} and returns an equivalent LPeg pattern. The given string may define
--- either an expression or a grammar. The optional {defs} table provides extra Lua values to be used
--- by the pattern.
--- @param string string
--- @param defs? table
--- @return vim.lpeg.Pattern
function vim.re.compile(string, defs) end

--- Searches the given {pattern} in the given {subject}. If it finds a match, returns the index
--- where this occurrence starts and the index where it ends. Otherwise, returns nil.
---
--- An optional numeric argument {init} makes the search starts at that position in the subject
--- string. As usual in Lua libraries, a negative value counts from the end.
... (26 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/regex.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

-- luacheck: no unused args

--- @brief The `vim.regex` interface allows Lua code to use Vim regexes.
--- - Matches within a single line.
--- - Does not check for interrupts (CTRL-C), so can be used from an |api-fast| context.

--- Parses the Vim regex `re` and returns a regex object. Regexes are "magic" and case-sensitive by
--- default, regardless of 'magic' and 'ignorecase'. They can be controlled with flags, see |/magic|
--- and |/ignorecase|.
--- @param re string
--- @return vim.regex
function vim.regex(re) end

--- @nodoc
--- @class vim.regex
local regex = {} -- luacheck: no unused

--- Matches string `str` against this regex. To match the string precisely, surround the regex with
--- "^" and "$". Returns the byte indices for the start and end of the match, or `nil` if there is
--- no match. Because any integer is "truthy", `regex:match_str()` can be directly used as
--- a condition in an if-statement.
--- @param str string
--- @return integer? # match start (byte index), or `nil` if no match
--- @return integer? # match end (byte index), or `nil` if no match
function regex:match_str(str) end

... (11 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/spell.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

-- luacheck: no unused args

--- Check {str} for spelling errors. Similar to the Vimscript function
--- [spellbadword()].
---
--- Note: The behaviour of this function is dependent on: 'spelllang',
--- 'spellfile', 'spellcapcheck' and 'spelloptions' which can all be local to
--- the buffer. Consider calling this with [nvim_buf_call()].
---
--- Example:
---
--- ```lua
--- vim.spell.check("the quik brown fox")
--- -- =>
--- -- {
--- --     {'quik', 'bad', 5}
--- -- }
--- ```
---
--- @param str string
--- @return [string, 'bad'|'rare'|'local'|'caps', integer][]
---   List of tuples with three items:
---     - The badly spelled word.
---     - The type of the spelling error:
---         "bad"   spelling mistake
---         "rare"  rare word
... (5 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/tui.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

--- @brief <pre>help
--- Below are the available fields in |$NVIM_TERMDEFS|. For keys of type `string[]`,
--- the first entry is the unshifted variant of the key, and the second entry is
--- the shifted variant. >
---
--- NVIM_TERMDEFS_TABLE
--- <
</file>

<file path="runtime/lua/vim/_meta/vimfn_types.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

--- @class vim.fn.sign
--- @field group string
--- @field id integer
--- @field lnum integer
--- @field name string
--- @field priority integer

--- @class vim.fn.getbufinfo.dict
--- @field buflisted? 0|1
--- @field bufloaded? 0|1
--- @field bufmodified? 0|1

--- @class vim.fn.getbufinfo.ret.item
--- @field bufnr integer
--- @field changed 0|1
--- @field changedtick integer
--- @field hidden 0|1
--- @field lastused integer
--- @field linecount integer
--- @field listed 0|1
--- @field lnum integer
--- @field loaded 0|1
--- @field name string
--- @field signs vim.fn.sign[]
--- @field variables table<string,any>
--- @field windows integer[]
... (352 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/vimfn.gen.lua">
--- @meta _
--
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
--
error('Cannot require a meta file')

--- Lua: Prefer |math.abs()|.
---
--- Return the absolute value of {expr}.  When {expr} evaluates to
--- a |Float| abs() returns a |Float|.  When {expr} can be
--- converted to a |Number| abs() returns a |Number|.  Otherwise
--- abs() gives an error message and returns -1.
--- Examples: >vim
---   echo abs(1.456)
--- <  1.456  >vim
---   echo abs(-5.456)
--- <  5.456  >vim
---   echo abs(-4)
--- <  4
---
--- @param expr number
--- @return number
function vim.fn.abs(expr) end

--- Lua: Prefer |math.acos()|.
---
--- Return the arc cosine of {expr} measured in radians, as a
--- |Float| in the range of [0, pi].
--- {expr} must evaluate to a |Float| or a |Number| in the range
--- [-1, 1].
... (11705 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/vvars_extra.lua">
--- @meta _
-- This file is NOT generated, edit it directly. See also _meta/vvars.gen.lua.
error('Cannot require a meta file')

--- Extra types for vim.v dictionary fields

--- @class vim.v.completed_item
--- @field word? string the text that will be inserted, mandatory
--- abbreviation of "word"; when not empty it is used in the menu instead of "word"
--- @field abbr? string
--- extra text for the popup menu, displayed after "word" or "abbr"
--- @field menu? string
--- more information about the item, can be displayed in a preview window
--- @field info? string
--- @field kind? string single letter indicating the type of completion
--- when non-zero case is to be ignored when comparing items to be equal; when
--- omitted zero is used, thus items that only differ in case are added
--- @field icase? integer
--- when non-zero, always treat this item to be equal when comparing. Which
--- means, "equal=1" disables filtering of this item.
--- @field equal? integer
--- when non-zero this match will be added even when an item with the same word
--- is already present.
--- @field dup? integer
--- when non-zero this match will be added even when it is an empty string
--- @field empty? integer
--- custom data which is associated with the item and available
--- in |v:completed_item|; it can be any type; defaults to an empty string
--- @field user_data? any
--- an additional highlight group whose attributes are combined
... (50 lines truncated)
</file>

<file path="runtime/lua/vim/_meta/vvars.gen.lua">
--- @meta _
--
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
--
error('Cannot require a meta file')

--- @class vim.v
vim.v = ...

--- File arguments (expanded to absolute paths) given at startup.
---
--- Unlike `v:argv`, this does not include option arguments
--- such as `-u`, `--cmd`, or `+cmd`. Unlike `argv()`, it is not
--- affected by later `:args`, `:argadd`, or plugin modifications.
---
--- Example:
--- ```
---   nvim file1.txt +ls -- file2.txt
---   :echo v:argf
---   " ['/path/to/cwd/file1.txt', '/path/to/cwd/file2.txt']
--- ```
--- @type string[]
vim.v.argf = ...

--- Command line arguments (`-u`, `--cmd`, `+cmd`, …) Nvim was
--- invoked with.  The first item is the Nvim command.
---
--- See `v:progpath` to get the full path to Nvim.
--- See `v:argf` to get only file args, without other options.
--- @type string[]
... (861 lines truncated)
</file>

<file path="runtime/lua/vim/async/_core.lua">
local util = require('vim._core.util')
local future = require('vim.async._future')
local runtime = require('vim.async._runtime')

local is_callable = vim.is_callable
local validate = vim.validate
local pcall = pcall
local coroutine_running = coroutine.running
do
  local ok, coxpcall = pcall(require, 'coxpcall')
  if ok and type(coxpcall) == 'table' then
    if type(coxpcall.pcall) == 'function' then
      pcall = coxpcall.pcall
    end
    if type(coxpcall.running) == 'function' then
      coroutine_running = coxpcall.running
    end
  end
end
local maxint = 2 ^ 32 - 1
local pack_len = vim.F.pack_len
local unpack_len = vim.F.unpack_len

--- @class vim.async._core
--- @nodoc
local M = {}

--- Weak table to keep track of running tasks
--- @type table<thread, vim.async.Task<any>?>
local threads = setmetatable({}, { __mode = 'k' })
... (1100 lines truncated)
</file>

<file path="runtime/lua/vim/async/_event.lua">
local async = require('vim.async._core')
local runtime = require('vim.async._runtime')

--- An event can be used to notify multiple tasks that some event has
--- happened. An Event object manages an internal flag that can be set to true
--- with the `set()` method and reset to `false` with the `clear()` method.
--- The `wait()` method blocks until the flag is set to `true`. The flag is
--- set to `false` initially.
--- @class vim.async.Event
--- @field private _is_set boolean
--- @field private _waiters (function|false)[]
local Event = {}
Event.__index = Event

--- @param waiters (function|false)[]
--- @return boolean
local function has_waiters(waiters)
  for _, waiter in ipairs(waiters) do
    if waiter then
      return true
    end
  end
  return false
end

--- Set the event.
---
--- All tasks waiting for event to be set will be awakened on a later event-loop
--- turn.
---
... (93 lines truncated)
</file>

<file path="runtime/lua/vim/async/_future.lua">
local F = vim.F
local util = require('vim._core.util')

--- @class (internal) vim.async.Future<R>
--- @field private _callbacks table<integer, fun(err?: any, ...: R...)>
--- @field private _callback_pos integer
--- @field private _err? any
--- @field private _result? R[] & { n: integer }
local Future = {}
Future.__index = Future

function Future:completed()
  return self._err ~= nil or self._result ~= nil
end

function Future:result()
  if not self:completed() then
    error('Future has not completed', 2)
  end
  if self._err ~= nil then
    return false, self._err
  else
    assert(self._result)
    return true, F.unpack_len(self._result)
  end
end

--- @param callback fun(err?: any, ...: R...)
--- @return fun()
function Future:on_complete(callback)
... (57 lines truncated)
</file>

<file path="runtime/lua/vim/async/_queue.lua">
local new_event = require('vim.async._event')

--- An optionally bounded FIFO queue for passing values between async tasks.
---
--- `put()` suspends the current task while the queue is full, and `get()`
--- suspends it while the queue is empty. The `put_nowait()` and `get_nowait()`
--- variants never suspend and raise an error when the operation cannot proceed.
--- @class vim.async.Queue<R>
--- @field private _non_empty vim.async.Event
--- @field package _non_full vim.async.Event
--- @field private _max_size? integer
--- @field private _items R[]
--- @field private _right_i integer
--- @field private _left_i integer
local Queue = {}
Queue.__index = Queue

--- Returns the number of items in the queue.
--- @return integer
function Queue:size()
  return self._right_i - self._left_i
end

--- Returns the maximum number of items in the queue.
--- @return integer?
function Queue:max_size()
  return self._max_size
end

--- Put an item into the queue.
... (75 lines truncated)
</file>

<file path="runtime/lua/vim/async/_runtime.lua">
local validate = vim.validate

--- @class vim.async.Timer: vim.async.Closable
--- @nodoc
--- @field start fun(self, timeout: integer, repeat_interval: integer, callback: fun())

--- @alias vim.async.TimerFactory fun(): vim.async.Timer
--- @nodoc

--- @class vim.async.ConfigOpts
--- @nodoc
--- @field wait? fun(timeout: integer, predicate: fun(): boolean): boolean Run the event loop until the predicate succeeds or the timeout expires.
--- @field schedule? fun(callback: fun()) Queue a callback to run once on a later event-loop turn.
--- @field new_timer? vim.async.TimerFactory Create libuv-compatible timers for `sleep()` and `timeout()`.
--- @field debug? boolean Capture task creation metadata for debugging.

--- @class vim.async.Runtime
--- @nodoc
--- @field wait fun(timeout: integer, predicate: fun(): boolean): boolean
--- @field schedule fun(callback: fun())
--- @field new_timer vim.async.TimerFactory
--- @field debug boolean
local M = {}
M.debug = false

--- @nodoc
--- @param opts vim.async.ConfigOpts
function M.config(opts)
  validate('opts', opts, 'table')
  validate('opts.wait', opts.wait, 'callable', true)
... (14 lines truncated)
</file>

<file path="runtime/lua/vim/async/_semaphore.lua">
local F = vim.F
local new_event = require('vim.async._event')

local pcall = pcall
do
  local ok, coxpcall = pcall(require, 'coxpcall')
  if ok and type(coxpcall) == 'table' and type(coxpcall.pcall) == 'function' then
    pcall = coxpcall.pcall
  end
end
local validate = vim.validate

--- A semaphore manages an internal permit counter. [Semaphore:acquire()]
--- consumes one permit and [Semaphore:release()] returns one permit. If no
--- permits are available, `acquire()` suspends the current task until another
--- task releases one.
---
--- The preferred way to use a Semaphore is with the `with()` method, which
--- automatically acquires and releases the semaphore around a function call.
--- This is useful for limiting sections that start external work and then
--- await it, such as file reads, requests, or subprocesses.
---
--- ```lua
--- local async = vim.async
---
--- async.run(function()
---   local limit = async.semaphore(4)
---   local tasks = {}
---
---   for _, path in ipairs(paths) do
... (101 lines truncated)
</file>

<file path="runtime/lua/vim/deprecated/health.lua">
local M = {}
local health = vim.health

local deprecated = {} ---@type table<string, [string, string[], string?]>

function M.check()
  if next(deprecated) == nil then
    health.ok('No deprecated functions detected')
    return
  end

  for name, v in vim.spairs(deprecated) do
    health.start('')

    local version, backtraces, alternative = v[1], v[2], v[3]
    local major_str, minor_str = version:match('(%d+)%.(%d+)')
    local major, minor = vim._assert_integer(major_str), vim._assert_integer(minor_str)
    local removal_version = string.format('nvim-%d.%d', major, minor)
    local will_be_removed = vim.fn.has(removal_version) == 1 and 'was removed' or 'will be removed'

    local msg = ('%s is deprecated. Feature %s in Nvim %s'):format(name, will_be_removed, version)
    local msg_alternative = alternative and ('use %s instead.'):format(alternative)
    local advice = { msg_alternative }
    table.insert(advice, backtraces)
    advice = vim.iter(advice):flatten():totable()
    health.warn(msg, advice)
  end
end

--- @param name string
... (17 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_config.lua">
local store = require('vim.diagnostic._store')

--- @class vim.diagnostic.OptsResolved
--- @field float false|vim.diagnostic.Opts.Float
--- @field update_in_insert boolean
--- @field underline false|vim.diagnostic.Opts.Underline
--- @field virtual_text false|vim.diagnostic.Opts.VirtualText
--- @field virtual_lines false|vim.diagnostic.Opts.VirtualLines
--- @field signs false|vim.diagnostic.Opts.Signs
--- @field severity_sort false|{reverse?:boolean}

--- @class (private) vim.diagnostic._config
local M = {}

--- @type vim.diagnostic.Opts
local global_diagnostic_options = {
  signs = true,
  underline = true,
  virtual_text = false,
  virtual_lines = false,
  float = true,
  update_in_insert = false,
  severity_sort = false,
  jump = {
    -- Wrap around buffer
    wrap = true,
  },
}

--- @param name 'signs'|'underline'|'virtual_text'|'virtual_lines'|'float'
... (129 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_display.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on

local diagnostic_modules = vim._defer_require('vim.diagnostic', {
  _config = ..., --- @module 'vim.diagnostic._config'
  _severity = ..., --- @module 'vim.diagnostic._severity'
  _shared = ..., --- @module 'vim.diagnostic._shared'
  _store = ..., --- @module 'vim.diagnostic._store'
})

--- @class (private) vim.diagnostic._display
local M = {}

-- Metatable that automatically creates an empty table when assigning to a missing key
local bufnr_and_namespace_cacher_mt = {
  --- @param t table<integer,table>
  --- @param bufnr integer
  --- @return table
  __index = function(t, bufnr)
    assert(bufnr > 0, 'Invalid buffer number')
    t[bufnr] = {}
    return t[bufnr]
  end,
}

--- @type table<integer,table<integer,table>>
local bufs_waiting_to_update = setmetatable({}, bufnr_and_namespace_cacher_mt)

--- @type table<string,true>
local registered_autocmds = {}
... (163 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_float.lua">
local api, nonnil = vim.api, vim.nonnil
local shared = require('vim.diagnostic._shared')
local store = require('vim.diagnostic._store')

--- @class (private) vim.diagnostic._float
local M = {}

local float_ns = api.nvim_create_namespace('nvim.diagnostic.float')

local severity = vim.diagnostic.severity

--- @type table<vim.diagnostic.Severity, string>
local floating_highlight_map = {
  [severity.ERROR] = 'DiagnosticFloatingError',
  [severity.WARN] = 'DiagnosticFloatingWarn',
  [severity.INFO] = 'DiagnosticFloatingInfo',
  [severity.HINT] = 'DiagnosticFloatingHint',
}

--- @param opts vim.diagnostic.Opts.Float
--- @param bufnr integer
--- @return vim.diagnostic.Opts.Float, vim.diagnostic.Opts
local function resolve_float_opts(opts, bufnr)
  -- Resolve options with user settings from vim.diagnostic.config
  -- Unlike the other decoration functions (e.g. set_virtual_text, set_signs, etc.) `open_float`
  -- does not have a dedicated table for configuration options; instead, the options are mixed in
  -- with its `opts` table. We create a dedicated options table (`float_opts`) that inherits
  -- missing keys from the global configuration (`global_diagnostic_options.float`), which can
  -- be a table or a function.
  local global_opts = vim.diagnostic.config()
... (270 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_handlers.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local diagnostic = vim.diagnostic
local diagnostic_shared = require('vim.diagnostic._shared')

local severity = diagnostic.severity

--- @class vim.diagnostic.Handler
--- @field show? fun(namespace: integer, bufnr: integer, diagnostics: vim.Diagnostic[], opts?: vim.diagnostic.OptsResolved)
--- @field hide? fun(namespace:integer, bufnr:integer)

--- @class (private) vim.diagnostic._handlers._extmark : vim.api.keyset.get_extmark_item
--- @field [1] integer extmark_id
--- @field [2] integer row
--- @field [3] integer col
--- @field [4] vim.api.keyset.extmark_details

local M = {}

-- Default diagnostic highlights
--- @type table<vim.diagnostic.Severity, string>
local severity_names = {
  [severity.ERROR] = 'Error',
  [severity.WARN] = 'Warn',
  [severity.INFO] = 'Info',
  [severity.HINT] = 'Hint',
}

--- @param base_name string
--- @return table<vim.diagnostic.Severity, string>
... (738 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_jump.lua">
local api, nonnil = vim.api, vim.nonnil
local shared = require('vim.diagnostic._shared')
local store = require('vim.diagnostic._store')

--- @class (private) vim.diagnostic._JumpOpts : vim.diagnostic.JumpOpts
--- @field _highest? boolean
--- @field win_id? integer
--- @field cursor_position? [integer, integer]
--- @field float? table|boolean

--- @class (private) vim.diagnostic._jump
local M = {}

--- @param diagnostics vim.Diagnostic[]
local function filter_highest(diagnostics)
  table.sort(diagnostics, function(a, b)
    return shared.diagnostic_cmp(a, b, 'severity', false)
  end)

  -- Find the first diagnostic where the severity does not match the highest severity, and remove
  -- that element and all subsequent elements from the array
  local worst = (diagnostics[1] or {}).severity
  for i = 2, #diagnostics do
    if diagnostics[i].severity ~= worst then
      for j = i, #diagnostics do
        diagnostics[j] = nil
      end
      break
    end
  end
... (265 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_severity.lua">
local severity = vim.diagnostic.severity

--- @class (private) vim.diagnostic._severity
local M = {}

--- @param value string|vim.diagnostic.Severity?
--- @return vim.diagnostic.Severity?
function M.to_severity(value)
  if type(value) == 'string' then
    local ret = severity[value:upper()] --[[@as vim.diagnostic.Severity?]]
    if not ret then
      error(('Invalid severity: %s'):format(value))
    end
    return ret
  end

  return value --[[@as vim.diagnostic.Severity?]]
end

--- @param filter vim.diagnostic.SeverityFilter
--- @return fun(d: vim.Diagnostic):boolean
function M.severity_predicate(filter)
  if type(filter) ~= 'table' then
    --- @cast filter vim.diagnostic.Severity
    local severity0 = M.to_severity(filter)
    --- @param d vim.Diagnostic
    return function(d)
      return d.severity == severity0
    end
  end
... (81 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_shared.lua">
local api = vim.api

local store = require('vim.diagnostic._store')

--- @class (private) vim.diagnostic._shared
local M = {}

--- @param bufnr integer
--- @return integer
function M.count_sources(bufnr)
  local count = 0
  local seen = {} --- @type table<string, true>
  for _, diagnostic in ipairs(store.get_diagnostics(bufnr, nil, false)) do
    local source = diagnostic.source
    if source and not seen[source] then
      seen[source] = true
      count = count + 1
    end
  end
  return count
end

--- @param diagnostics vim.Diagnostic[]
--- @return vim.Diagnostic[]
function M.prefix_source(diagnostics)
  --- @param diagnostic vim.Diagnostic
  return vim.tbl_map(function(diagnostic)
    if not diagnostic.source then
      return diagnostic
    end
... (150 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic/_store.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on

local severity_module = require('vim.diagnostic._severity')

--- @class (private) vim.diagnostic._store
local M = {}

-- bufnr -> ns -> Diagnostic[]
local diagnostic_cache = {} --- @type table<integer,table<integer,vim.Diagnostic[]?>>

local group = api.nvim_create_augroup('nvim.diagnostic.buf_wipeout')
setmetatable(diagnostic_cache, {
  --- @param t table<integer,vim.Diagnostic[]>
  --- @param bufnr integer
  __index = function(t, bufnr)
    assert(bufnr > 0, 'Invalid buffer number')
    nvim_on('BufWipeout', group, { buf = bufnr }, function()
      rawset(t, bufnr, nil)
    end)
    t[bufnr] = {}
    return t[bufnr]
  end,
})

--- @param bufnr integer
--- @param namespace integer
--- @param d vim.Diagnostic.Set
local function norm_diag(bufnr, namespace, d)
  vim.validate('diagnostic.lnum', d.lnum, 'number')
... (283 lines truncated)
</file>

<file path="runtime/lua/vim/filetype/detect.lua">
--- @diagnostic disable: annotation-usage-error

-- Contains filetype detection functions for use in filetype.lua that are either:
--  * used more than once or
--  * complex (e.g. check more than one line or use conditionals).
-- Simple one-line checks, such as a check for a string in the first line are better inlined in filetype.lua.

-- A few guidelines to follow when porting a new function:
--  * Sort the function alphabetically and omit 'ft' or 'check' from the new function name.
--  * Use ':find' instead of ':match' / ':sub' if possible.
--  * When '=~' is used to match a pattern, there are two possibilities:
--     - If the pattern only contains lowercase characters, treat the comparison as case-insensitive.
--     - Otherwise, treat it as case-sensitive.
--     (Basically, we apply 'smartcase': if upper case characters are used in the original pattern, then
--     it's likely that case does matter).
--  * When '\k', '\<' or '\>' is used in a pattern, use the 'matchregex' function.
--     Note that vim.regex is case-sensitive by default, so add the '\c' flag if only lowercase letters
--     are present in the pattern:
--     Example:
--     `if line =~ '^\s*unwind_protect\>'` => `if matchregex(line, [[\c^\s*unwind_protect\>]])`

local fn = vim.fn
local fs = vim.fs

local M = {}

local getlines = vim.filetype._getlines
local getline = vim.filetype._getline
local findany = vim.filetype._findany
local nextnonblank = vim.filetype._nextnonblank
... (2486 lines truncated)
</file>

<file path="runtime/lua/vim/filetype/options.lua">
local api = vim.api

local M = {}

--- @param filetype string
local function get_ftplugin_runtime(filetype)
  local files = api.nvim__get_runtime({
    string.format('ftplugin/%s.vim', filetype),
    string.format('ftplugin/%s_*.vim', filetype),
    string.format('ftplugin/%s/*.vim', filetype),
    string.format('ftplugin/%s.lua', filetype),
    string.format('ftplugin/%s_*.lua', filetype),
    string.format('ftplugin/%s/*.lua', filetype),
  }, true, {}) --[[@as string[] ]]

  local r = {} ---@type string[]
  for _, f in ipairs(files) do
    -- VIMRUNTIME should be static so shouldn't need to worry about it changing
    if not vim.startswith(f, assert(vim.env.VIMRUNTIME)) then
      r[#r + 1] = f
    end
  end
  return r
end

-- Keep track of ftplugin files
local ftplugin_cache = {} ---@type table<string,table<string,integer>>

-- Keep track of total number of FileType autocmds
local ft_autocmd_num ---@type integer?
... (60 lines truncated)
</file>

<file path="runtime/lua/vim/func/_memoize.lua">
--- Module for private utility functions

--- @alias vim.func.MemoObj { _hash: (fun(...): any), _weak: boolean?, _cache: table<any, any> }

--- @param argc integer?
--- @return fun(...): any
local function concat_hash(argc)
  return function(...)
    return table.concat({ ... }, '%%', 1, argc)
  end
end

--- @param idx integer
--- @return fun(...): any
local function idx_hash(idx)
  return function(...)
    return select(idx, ...)
  end
end

--- @param hash integer|string|fun(...): any
--- @return fun(...): any
local function resolve_hash(hash)
  if type(hash) == 'number' then
    hash = idx_hash(hash)
  elseif type(hash) == 'string' then
    if hash == 'concat' then
      hash = concat_hash()
    else
      local c = hash:match('^concat%-(%d+)')
... (58 lines truncated)
</file>

<file path="runtime/lua/vim/health/health.lua">
local nvim_on = require('vim._core.util').nvim_on

local M = {}
local async = require('vim.async') --- @type vim.async._core
local health = require('vim.health')

---@async
---@param cmd string[]
---@param opts? vim.SystemOpts
---@return vim.SystemCompleted
local function run_system(cmd, opts)
  --- @diagnostic disable-next-line: assign-type-mismatch
  local result = async.await(3, vim.system, cmd, opts) --- @type vim.SystemCompleted
  async.await(vim.schedule)
  return result
end

---Run a system command and return ok and its stdout and stderr combined.
---@async
---@param cmd string[]
---@param timeout? integer Timeout in ms (default: no timeout).
---@return boolean
---@return string
local function system(cmd, timeout)
  local result = run_system(cmd, { text = true, timeout = timeout })
  if not result then -- Workaround https://github.com/neovim/neovim/issues/37922
    return false, 'command failed'
  end
  return result.code == 0, vim.trim(('%s\n%s'):format(result.stdout, result.stderr))
end
... (829 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/_meta/protocol.lua">
--[[
THIS FILE IS GENERATED by src/gen/gen_lsp.lua
DO NOT EDIT MANUALLY

Based on LSP protocol 3.18

Regenerate:
nvim -l src/gen/gen_lsp.lua --version 3.18
--]]

---@meta
error('Cannot require a meta file')

---@alias lsp.null vim.NIL
---@alias uinteger integer
---@alias decimal number
---@alias lsp.DocumentUri string
---@alias lsp.URI string

---@class lsp.ImplementationParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams

---Represents a location inside a resource, such as a line
---inside a text file.
---@class lsp.Location
---
---@field uri lsp.DocumentUri
---
---@field range lsp.Range

---@class lsp.ImplementationRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.ImplementationOptions, lsp.StaticRegistrationOptions
... (5691 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/_capability.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on

---@alias vim.lsp.capability.Name
---| 'codelens'
---| 'diagnostics'
---| 'document_color'
---| 'folding_range'
---| 'inlay_hint'
---| 'inline_completion'
---| 'linked_editing_range'
---| 'semantic_tokens'

--- Tracks all supported capabilities, all of which derive from `vim.lsp.Capability`.
--- Returns capability *prototypes*, not their instances.
---@type table<vim.lsp.capability.Name, vim.lsp.Capability>
local all_capabilities = {}

--- Track each capability instance created per buffer
---@type table<integer, vim.lsp.Capability[]> buffer -> list of active capability instances
local buf_capabilities = {}

-- Abstract base class (not instantiable directly).
-- For each buffer that has at least one supported client attached,
-- exactly one instance of each concrete subclass is created.
-- That instance is destroyed once all supporting clients detach from the buffer.
---@class vim.lsp.Capability
---
--- Static field as the identifier of the LSP capability it supports.
---@field name vim.lsp.capability.Name
... (262 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/_changetracking.lua">
local protocol = require('vim.lsp.protocol')
local sync = require('vim.lsp.sync')
local util = require('vim.lsp.util')

local api = vim.api
local uv = vim.uv

local M = {}

--- LSP has 3 different sync modes:
---   - None (Servers will read the files themselves when needed)
---   - Full (Client sends the full buffer content on updates)
---   - Incremental (Client sends only the changed parts)
---
--- Changes are tracked per buffer.
--- A buffer can have multiple clients attached and each client needs to send the changes
--- To minimize the amount of changesets to compute, computation is grouped:
---
---   None: One group for all clients
---   Full: One group for all clients
---   Incremental: One group per `position_encoding`
---
--- Sending changes can be debounced per buffer. To simplify the implementation the
--- smallest debounce interval is used and we don't group clients by different intervals.
---
--- @class vim.lsp.CTGroup
--- @field sync_kind integer TextDocumentSyncKind, considers config.flags.allow_incremental_sync
--- @field position_encoding "utf-8"|"utf-16"|"utf-32"
---
--- @class vim.lsp.CTBufferState
... (401 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/_folding_range.lua">
local util = require('vim.lsp.util')
local log = require('vim.lsp.log')
local tableclear = require('vim._core.table').clear
local nvim_on = require('vim._core.util').nvim_on
local api = vim.api

---@type table<lsp.FoldingRangeKind, true>
local supported_fold_kinds = {
  ['comment'] = true,
  ['imports'] = true,
  ['region'] = true,
}

local M = {}

local Capability = require('vim.lsp._capability')

---@class (private) vim.lsp.folding_range.State : vim.lsp.Capability
---
---@field active table<integer, vim.lsp.folding_range.State?>
---
--- `TextDocument` version this `state` corresponds to.
---@field version? integer
---
--- treesitter language of the buffer, used for foldtext highlights.
---@field lang? string
---
--- Never use this directly, `evaluate()` the cached foldinfo
--- then use on demand via `row_*` fields.
---
... (441 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/_meta.lua">
---@meta
error('Cannot require a meta file')

---@alias lsp.Handler fun(err: lsp.ResponseError?, result: any, context: lsp.HandlerContext, config?: table): ...any
---@alias lsp.MultiHandler fun(results: table<integer,{err: lsp.ResponseError?, result: any, context: lsp.HandlerContext}>, context: lsp.HandlerContext, config?: table): ...any

---@class lsp.HandlerContext
---@field method string
---@field client_id integer
---@field request_id? integer
---@field bufnr? integer
---@field params? any
---@field version? integer

---@class lsp.ResponseError
---@field code integer
---@field message string
---@field data string|number|boolean|table[]|table|nil
</file>

<file path="runtime/lua/vim/lsp/_snippet_grammar.lua">
--- Grammar for LSP snippets, based on https://microsoft.github.io/language-server-protocol/specification/#snippet_syntax

local lpeg = vim.lpeg
local P, S, R, V = lpeg.P, lpeg.S, lpeg.R, lpeg.V
local C, Cg, Ct = lpeg.C, lpeg.Cg, lpeg.Ct

local M = {}

local alpha = R('az', 'AZ')
local backslash = P('\\')
local colon = P(':')
local dollar = P('$')
local int = R('09') ^ 1
local l_brace, r_brace = P('{'), P('}')
local pipe = P('|')
local slash = P('/')
local underscore = P('_')
local var = Cg((underscore + alpha) * ((underscore + alpha + int) ^ 0), 'name')
local format_capture = Cg(int / tonumber, 'capture')
local format_modifier = Cg(P('upcase') + P('downcase') + P('capitalize'), 'modifier')
local tabstop = Cg(int / tonumber, 'tabstop')

-- These characters are always escapable in text nodes no matter the context.
local escapable = '$}\\'

--- Returns a function that unescapes occurrences of "special" characters.
---
--- @param special? string
--- @return fun(match: string): string
local function escape_text(special)
... (150 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/_watchfiles.lua">
local bit = require('bit')
local watch = vim._watch
local log = require('vim.lsp.log')
local notify = require('vim._core.util').notify
local protocol = require('vim.lsp.protocol')

local M = {}

if vim.fn.has('win32') == 1 or vim.fn.has('mac') == 1 then
  M._watchfunc = watch.watch
elseif vim.fn.executable('inotifywait') == 1 then
  M._watchfunc = watch.inotify
else
  M._watchfunc = watch.watchdirs
end

--- @type table<integer, table<string, fun()>> client id -> registration id -> cancel
local registered = vim.defaulttable(function()
  return {}
end)

local queue_timeout_ms = 100
---@type table<integer, uv.uv_timer_t> client id -> libuv timer which will send queued changes at its timeout
local queue_timers = {}
---@type table<integer, lsp.FileEvent[]> client id -> set of queued changes to send in a single LSP notification
local change_queues = {}
---@type table<integer, table<string, lsp.FileChangeType>> client id -> URI -> last type of change processed
--- Used to prune consecutive events of the same type for the same file
local change_cache = vim.defaulttable()

... (174 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/buf.lua">
--- @brief
--- The `vim.lsp.buf_…` functions perform operations for LSP clients attached to the current buffer.

local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local lsp = vim.lsp
local validate = vim.validate
local util = require('vim.lsp.util')
local npcall = vim.npcall
local Range = require('vim.treesitter._range')

local M = {}

--- @param params? table
--- @return fun(client: vim.lsp.Client): lsp.TextDocumentPositionParams
local function client_positional_params(params)
  local win = api.nvim_get_current_win()
  return function(client)
    local ret = util.make_position_params(win, client.offset_encoding)
    if params then
      ret = vim.tbl_extend('force', ret, params)
    end
    return ret
  end
end

local hover_ns = api.nvim_create_namespace('nvim.lsp.hover_range')
local rename_ns = api.nvim_create_namespace('nvim.lsp.rename_range')

--- Returns false if the LSP response is stale and should be discarded.
... (1549 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/client.lua">
local uv = vim.uv
local api = vim.api
local lsp = vim.lsp
local log = lsp.log
local changetracking = lsp._changetracking
local validate = vim.validate

--- Tracks all clients initialized.
---@type table<integer,vim.lsp.Client>
local all_clients = {}

---@param provider string
---@param capability string[]?
local function is_nested_server_capability_provider(provider, capability)
  return capability ~= nil and #capability > 1 and provider == table.concat(capability, '.')
end

--- @alias vim.lsp.client.on_init_cb fun(client: vim.lsp.Client, init_result: lsp.InitializeResult)
--- @alias vim.lsp.client.on_attach_cb fun(client: vim.lsp.Client, bufnr: integer)
--- @alias vim.lsp.client.on_exit_cb fun(code: integer, signal: integer, client_id: integer)
--- @alias vim.lsp.client.before_init_cb fun(params: lsp.InitializeParams, config: vim.lsp.ClientConfig)

--- @class vim.lsp.Client.Flags
--- @inlinedoc
---
--- Allow using incremental sync for buffer edits
--- (default: `true`)
--- @field allow_incremental_sync? boolean
---
--- Debounce `didChange` notifications to the server by the given number in milliseconds.
... (1563 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/codelens.lua">
local api = vim.api
local log = require('vim.lsp.log')
local tableclear = require('vim._core.table').clear
local util = require('vim.lsp.util')

local M = {}

local Capability = require('vim.lsp._capability')

---@class (private) vim.lsp.codelens.RowLenses
---@field lenses lsp.CodeLens[]
---@field version? integer `TextDocument` version most recently applied to this row.

---@class (private) vim.lsp.codelens.ClientState
---@field row_lenses table<integer, vim.lsp.codelens.RowLenses>
---@field namespace integer
---@field version? integer `TextDocument` version current state corresponds to.

---@class (private) vim.lsp.codelens.Provider : vim.lsp.Capability
---@field active table<integer, vim.lsp.codelens.Provider>
---
--- Index In the form of client_id -> client_state
---@field client_state table<integer, vim.lsp.codelens.ClientState?>
local Provider = {
  name = 'codelens',
  method = 'textDocument/codeLens',
  active = {},
}
Provider.__index = Provider
setmetatable(Provider, Capability)
... (481 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/completion.lua">
--- @brief
--- The `vim.lsp.completion` module enables insert-mode completion driven by an LSP server. Call
--- `enable()` to make it available through Nvim builtin completion (via the |CompleteDone| event).
--- Specify `autotrigger=true` to activate "auto-completion" when you type any of the server-defined
--- `triggerCharacters`. Use CTRL-Y to select an item from the completion menu. |complete_CTRL-Y|
---
--- Example: activate LSP-driven auto-completion:
--- ```lua
--- -- Works best if 'completeopt' has "noselect".
--- -- Use CTRL-Y to select an item. |complete_CTRL-Y|
--- vim.cmd[[set completeopt+=menuone,noselect,popup]]
--- vim.lsp.start({
---   name = 'ts_ls',
---   cmd = …,
---   on_attach = function(client, bufnr)
---     vim.lsp.completion.enable(true, client.id, bufnr, {
---       autotrigger = true,
---       convert = function(item)
---         return { abbr = item.label:gsub('%b()', '') }
---       end,
---     })
---   end,
--- })
--- ```
---
--- [lsp-autocompletion]()
---
--- The LSP `triggerCharacters` field decides when to trigger autocompletion. If you want to trigger
--- on EVERY keypress you can either:
--- - Extend `client.server_capabilities.completionProvider.triggerCharacters` on `LspAttach`,
... (1415 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/diagnostic.lua">
---@brief This module provides functionality for requesting LSP diagnostics for a document/workspace
---and populating them using |vim.Diagnostic|s. `DiagnosticRelatedInformation` is supported: it is
---included in the window shown by |vim.diagnostic.open_float()|. When the cursor is on a line with
---related information, |gf| jumps to the problem location.

local lsp = vim.lsp
local protocol = lsp.protocol
local util = lsp.util
local Capability = require('vim.lsp._capability')

local api = vim.api

local M = {}

---@class (private) vim.lsp.diagnostic.ClientState
---@field pull_kind 'document'|'workspace' Whether diagnostics are being updated via document or workspace pull
---@field result_id table<string, string?>  Latest responded `resultId`, keyed by `identifier`

---@class (private) Diagnostics : vim.lsp.Capability
---@field active table<integer, Diagnostics>
---@field client_state table<integer, vim.lsp.diagnostic.ClientState>
local Diagnostics = {
  name = 'diagnostics',
  method = 'textDocument/diagnostic',
  active = {},
}
Diagnostics.__index = Diagnostics
setmetatable(Diagnostics, Capability)
Capability.all[Diagnostics.name] = Diagnostics

... (512 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/document_color.lua">
--- @brief This module provides LSP support for highlighting color references in a document.
--- Highlighting is enabled by default.

local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local lsp = vim.lsp
local util = lsp.util
local Capability = require('vim.lsp._capability')

local M = {}

--- @class (private) vim.lsp.document_color.HighlightInfo
--- @field lsp_info lsp.ColorInformation Unprocessed LSP color information
--- @field hex_code string Resolved HEX color
--- @field range vim.Range Range of the highlight
--- @field hl_group? string Highlight group name. Won't be present if the style is a custom function.

--- @class (private) vim.lsp.document_color.ClientState
--- @field namespace integer Extmark namespace for this client
--- @field hl_info vim.lsp.document_color.HighlightInfo[] Processed highlight information
--- @field processed_version? integer Buffer version for which the color ranges correspond to
--- @field applied_version? integer Last buffer version for which we applied color ranges

--- @inlinedoc
--- @class vim.lsp.document_color.Opts
---
--- Highlight style. It can be one of the pre-defined styles, a string to be used as virtual text, or a
--- function that receives the buffer handle, the range (start line, start col, end line, end col) and
--- the resolved hex color. (default: `'background'`)
--- @field style? 'background'|'foreground'|'virtual'|string|fun(bufnr: integer, range: vim.Range, hex_code: string)
... (381 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/handlers.lua">
local log = require('vim.lsp.log')
local protocol = require('vim.lsp.protocol')
local util = require('vim.lsp.util')
local api = vim.api
local completion = require('vim.lsp.completion')

--- @type table<string, lsp.Handler>
local M = {}

--- @deprecated
--- Client to server response handlers.
--- @type table<vim.lsp.protocol.Method.ClientToServer, lsp.Handler>
local RCS = {}

--- Server to client request handlers.
--- @type table<vim.lsp.protocol.Method.ServerToClient, lsp.Handler>
local RSC = {}

--- Server to client notification handlers.
--- @type table<vim.lsp.protocol.Method.ServerToClient, lsp.Handler>
local NSC = {}

--- Writes to error buffer.
---@param ... string|number Will be concatenated before being written
local function err_message(...)
  vim.notify(table.concat(vim.iter({ ... }):flatten():totable()), vim.log.levels.ERROR)
  api.nvim_command('redraw')
end

--- @param params lsp.ShowMessageParams|lsp.ShowMessageRequestParams
... (717 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/health.lua">
local M = {}

local report_info = vim.health.info
local report_warn = vim.health.warn

--- Buffer the user was in when they ran `:checkhealth`.
--- @type integer?
local cur_bufnr = -1

--- Decorates a buffer-id in a report line, so it is easy for the user to see (and for us to highlight).
--- @param bufnr integer
--- @return string
local function decor_curbuf(bufnr)
  if bufnr == cur_bufnr and vim.api.nvim_buf_is_valid(bufnr) then
    return ('%d (current buffer, %q)'):format(
      bufnr,
      vim.fs.basename(vim.api.nvim_buf_get_name(bufnr))
    )
  end
  return tostring(bufnr)
end

local function check_log()
  local log = vim.lsp.log
  local current_log_level = log.get_level()
  local log_level_string = assert(log.levels[current_log_level])
  report_info(string.format('LSP log level: %s', log_level_string))

  if current_log_level < log.levels.WARN then
    report_warn(
... (285 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/inlay_hint.lua">
local api = vim.api
local log = require('vim.lsp.log')
local nvim_on = require('vim._core.util').nvim_on
local util = require('vim.lsp.util')

local Capability = require('vim.lsp._capability')

local M = {}

---@class (private) vim.lsp.inlay_hint.LineHints
---@field hints lsp.InlayHint[]
---@field applied boolean whether this line's hints have had extmarks applied

---@class (private) vim.lsp.inlay_hint.CurrentResult Info for current result
---@field version? integer document version associated with this result
---@field namespace_cleared? boolean whether the namespace was cleared for this result yet
---@field hints? table<integer, vim.lsp.inlay_hint.LineHints> lnum -> hints

---@class (private) vim.lsp.inlay_hint.ActiveRequest
---@field request_id? integer the LSP request ID of the most recent request sent to the server
---@field version? integer the document version associated with the most recent request

---@class (private) vim.lsp.inlay_hint.ClientState Buffer local state for inlay hints
---@field namespace integer
---@field active_request vim.lsp.inlay_hint.ActiveRequest
---@field current_result vim.lsp.inlay_hint.CurrentResult

---@class (private) InlayHints : vim.lsp.Capability
---@field active table<integer, InlayHints>
---@field client_state table<integer, vim.lsp.inlay_hint.ClientState?>
... (394 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/inline_completion.lua">
--- @brief
--- This module provides the LSP "inline completion" feature, for completing multiline text (e.g.,
--- whole methods) instead of just a word or line, which may result in "syntactically or
--- semantically incorrect" code. Unlike regular completion, this is typically presented as overlay
--- text instead of a menu of completion candidates.
---
--- LSP spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#textDocument_inlineCompletion
---
--- To try it out, here is a quickstart example using Copilot: [lsp-copilot]()
---
--- 1. Install Copilot:
---    ```sh
---    npm install --global @github/copilot-language-server
---    ```
--- 2. Define a config, (or copy `lsp/copilot.lua` from https://github.com/neovim/nvim-lspconfig):
---    ```lua
---    vim.lsp.config('copilot', {
---      cmd = { 'copilot-language-server', '--stdio' },
---      root_markers = { '.git' },
---       init_options = {
---         editorInfo = {
---           name = 'Neovim', version = tostring(vim.version()) },
---           editorPluginInfo = { name = 'Neovim', version = tostring(vim.version()) },
---         },
---    })
---    ```
--- 3. Activate the config:
---    ```lua
---    vim.lsp.enable('copilot')
---    ```
... (485 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/linked_editing_range.lua">
--- @brief
--- The `vim.lsp.linked_editing_range` module enables "linked editing" via a language server's
--- `textDocument/linkedEditingRange` request. Linked editing ranges are synchronized text regions,
--- meaning changes in one range are mirrored in all the others. This is helpful in HTML files for
--- example, where the language server can update the text of a closing tag if its opening tag was
--- changed.
---
--- LSP spec: https://microsoft.github.io/language-server-protocol/specification/#textDocument_linkedEditingRange

local util = require('vim.lsp.util')
local log = require('vim.lsp.log')
local nvim_on = require('vim._core.util').nvim_on
local lsp = vim.lsp
local Capability = require('vim.lsp._capability')
local method = 'textDocument/linkedEditingRange'
local Range = require('vim.treesitter._range')
local api = vim.api
local M = {}

---@class (private) vim.lsp.linked_editing_range.state Global state for linked editing ranges
---An optional word pattern (regular expression) that describes valid contents for the given ranges.
---@field word_pattern string
---@field range_index? integer The index of the range that the cursor is on.
---@field namespace integer namespace for range extmarks

---@class (private) vim.lsp.linked_editing_range.LinkedEditor : vim.lsp.Capability
---@field active table<integer, vim.lsp.linked_editing_range.LinkedEditor>
---@field client_state table<integer, vim.lsp.linked_editing_range.state>
local LinkedEditor = {
  name = 'linked_editing_range',
... (207 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/log.lua">
--- @brief
--- The `vim.lsp.log` module provides logging for the Nvim LSP client.
---
--- When debugging language servers, it is helpful to enable extra-verbose logging of the LSP client
--- RPC events. Example:
--- ```lua
--- vim.lsp.log.set_level 'trace'
--- ```
---
--- Then try to run the language server, and open the log with:
--- ```vim
--- :log lsp
--- ```
---
--- Note:
--- - Remember to DISABLE verbose logging ("debug" or "trace" level), else you may encounter
---   performance issues.
--- - "ERROR" messages containing "stderr" only indicate that the log was sent to stderr. Many
---   servers send harmless messages via stderr.

local log_levels = vim.log.levels

local M = {
  TRACE = log_levels.TRACE,
  DEBUG = log_levels.DEBUG,
  INFO = log_levels.INFO,
  WARN = log_levels.WARN,
  ERROR = log_levels.ERROR,
  OFF = log_levels.OFF,
}
... (102 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/on_type_formatting.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local lsp = vim.lsp
local util = lsp.util
local method = 'textDocument/onTypeFormatting'

local schedule = vim.schedule
local current_buf = api.nvim_get_current_buf
local get_mode = api.nvim_get_mode

local ns = api.nvim_create_namespace('nvim.lsp.on_type_formatting')
local augroup = api.nvim_create_augroup('nvim.lsp.on_type_formatting')

local M = {}

--- @alias vim.lsp.on_type_formatting.BufTriggers table<string, table<integer, vim.lsp.Client>>

--- A map from bufnr -> trigger character -> client ID -> client
--- @type table<integer, vim.lsp.on_type_formatting.BufTriggers>
local buf_handles = {}

--- |lsp-handler| for the `textDocument/onTypeFormatting` method.
---
--- @param err? lsp.ResponseError
--- @param result? lsp.TextEdit[]
--- @param ctx lsp.HandlerContext
local function on_type_formatting(err, result, ctx)
  if err then
    lsp.log.error('on_type_formatting', err)
    return
... (230 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/protocol.lua">
--- @diagnostic disable: duplicate-doc-alias

---@generic T: string|number
---@param tbl table<string, T>
---@return T[]
local function get_value_set(tbl)
  local value_set = {}
  for _, v in pairs(tbl) do
    table.insert(value_set, v)
  end
  table.sort(value_set)
  return value_set
end

local sysname = vim.uv.os_uname().sysname

--- @class vim.lsp.protocol.constants
--- @nodoc
local constants = {
  DiagnosticSeverity = {
    -- Reports an error.
    Error = 1,
    -- Reports a warning.
    Warning = 2,
    -- Reports an information.
    Information = 3,
    -- Reports a hint.
    Hint = 4,
  },

... (1517 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/rpc.lua">
local log = require('vim.lsp.log')
local protocol = require('vim.lsp.protocol')
local net_transport = require('vim.net._transport')
local strbuffer = require('vim._core.stringbuffer')
local validate = vim.validate

--- Embeds the given string into a table and correctly computes `Content-Length`.
---
--- @param message string
--- @return string message with `Content-Length` attribute
local function format_message_with_content_length(message)
  return table.concat({
    'Content-Length: ',
    tostring(#message),
    '\r\n\r\n',
    message,
  })
end

--- Extract `content-length` from the header.
---
--- The structure of header fields conforms to [HTTP semantics](https://tools.ietf.org/html/rfc7230#section-3.2),
--- i.e., `header-field = field-name : OWS field-value OWS`. OWS means optional whitespace (space/horizontal tabs).
---
--- We ignore lines ending with `\n` that don't contain `content-length`, since some servers
--- write log to standard output and there's no way to avoid it.
--- See https://github.com/neovim/neovim/pull/35743#pullrequestreview-3379705828
--- @param ptr vim._core.stringbuffer.ptr The ptr to buffer to parse
--- @param start integer The starting index of the buffer to parse, 0-based
--- @param len integer The length of the header to parse
... (641 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/semantic_tokens.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local bit = require('bit')
local util = require('vim.lsp.util')
local Range = require('vim.treesitter._range')
local uv = vim.uv

local Capability = require('vim.lsp._capability')

local M = {}

--- @class (private) STTokenRange
--- @field line integer line number 0-based
--- @field start_col integer start column 0-based
--- @field end_line integer end line number 0-based
--- @field end_col integer end column 0-based
--- @field type string token type as string
--- @field modifiers table<string,boolean> token modifiers as a set. E.g., { static = true, readonly = true }
--- @field marked boolean whether this token has had extmarks applied

--- @class (private) STCurrentResult
--- @field version? integer document version associated with this result
--- @field result_id? string resultId from the server; used with delta requests
--- @field highlights? STTokenRange[] cache of highlight ranges for this document version
--- @field tokens? uinteger[] raw token array as received by the server. used for calculating delta responses
--- @field namespace_cleared? boolean whether the namespace was cleared for this result yet

--- @class (private) STActiveRequest
--- @field request_id? integer the LSP request ID of the most recent request sent to the server
--- @field version? integer the document version associated with the most recent request
... (991 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/sync.lua">
-- Notes on incremental sync:
--  Per the protocol, the text range should be:
--
--  A position inside a document (see Position definition below) is expressed as
--  a zero-based line and character offset. The offsets are based on a UTF-16
--  string representation. So a string of the form a𐐀b the character offset
--  of the character a is 0, the character offset of 𐐀 is 1 and the character
--  offset of b is 3 since 𐐀 is represented using two code units in UTF-16.
--
--  To ensure that both client and server split the string into the same line
--  representation the protocol specifies the following end-of-line sequences: ‘\n’, ‘\r\n’ and ‘\r’.
--
--  Positions are line end character agnostic. So you can not specify a position that
--  denotes \r|\n or \n| where | represents the character offset. This means *no* defining
--  a range than ends on the same line after a terminating character
--
-- Generic warnings about byte level changes in neovim. Many apparently "single"
-- operations in on_lines callbacks are actually multiple operations.
--
--  Join operation (2 operations):
--  * extends line 1 with the contents of line 2
--  * deletes line 2
--
--  test 1    test 1 test 2    test 1 test 2
--  test 2 -> test 2        -> test 3
--  test 3    test 3
--
--  Deleting (and undoing) two middle lines (1 operation):
--
--  test 1    test 1
... (409 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/tagfunc.lua">
local lsp = vim.lsp
local api = vim.api
local util = lsp.util

---@param name string
---@param range lsp.Range
---@param uri string
---@param position_encoding 'utf-8'|'utf-16'|'utf-32'
---@return {name: string, filename: string, cmd: string, kind?: string}
local function mk_tag_item(name, range, uri, position_encoding)
  local bufnr = vim.uri_to_bufnr(uri)
  -- This is get_line_byte_from_position is 0-indexed, call cursor expects a 1-indexed position
  local pos = vim.pos.lsp(bufnr, range.start, position_encoding)
  local byte = pos.col + 1
  return {
    name = name,
    filename = vim.uri_to_fname(uri),
    cmd = string.format([[/\%%%dl\%%%dc/]], range.start.line + 1, byte),
  }
end

---@param pattern string
---@return table[]
local function query_definition(pattern)
  local bufnr = api.nvim_get_current_buf()
  local win = api.nvim_get_current_win()
  local results = {}

  --- @param range lsp.Range
  --- @param uri string
... (82 lines truncated)
</file>

<file path="runtime/lua/vim/lsp/util.lua">
local protocol = require('vim.lsp.protocol')
local validate = vim.validate
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local list_extend = vim.list_extend
local uv = vim.uv

local M = {}

--- @param border string|(string|[string,string])[]
--- @return never
local function border_error(border)
  error(
    string.format(
      'invalid floating preview border: %s. :help vim.api.nvim_open_win()',
      vim.inspect(border)
    ),
    2
  )
end

local border_size = {
  none = { 0, 0 },
  single = { 2, 2 },
  double = { 2, 2 },
  rounded = { 2, 2 },
  solid = { 2, 2 },
  shadow = { 1, 1 },
  bold = { 2, 2 },
}
... (2034 lines truncated)
</file>

<file path="runtime/lua/vim/net/_ssh.lua">
-- Converted into Lua from https://github.com/cyjake/ssh-config
-- TODO (siddhantdev): deal with include directives

local M = {}

local whitespace_pattern = '%s'
local line_break_pattern = '[\r\n]'

---@param param string
local function is_multi_value_directive(param)
  local multi_value_directives = {
    'globalknownhostsfile',
    'host',
    'ipqos',
    'sendenv',
    'userknownhostsfile',
    'proxycommand',
    'match',
    'canonicaldomains',
  }

  return vim.list_contains(multi_value_directives, param:lower())
end

---@param text string The ssh configuration which needs to be parsed
---@return string[] The parsed host names in the configuration
function M.parse_ssh_config(text)
  local i = 1
  local line = 1

... (212 lines truncated)
</file>

<file path="runtime/lua/vim/net/_transport.lua">
local uv = vim.uv
local strbuffer = require('vim._core.stringbuffer')

--- Interface for transport implementations.
---
--- @class (internal, exact) vim.net.Transport
--- @field listen fun(self: vim.net.Transport, on_read: fun(err: string?, data: string?), on_exit: fun(code: integer, signal: integer))
--- @field write fun(self: vim.net.Transport, msg: string)
--- @field is_closing fun(self: vim.net.Transport): boolean
--- @field terminate fun(self: vim.net.Transport)

--- Transport backed by newly spawned process using `vim.system()`.
---
--- @class (private, exact) vim.net.TransportRun : vim.net.Transport
--- @field private cmd string[] Command to start the process.
--- @field private extra_spawn_params? vim.net.transport.ExtraSpawnParams
--- @field private log vim.Log
--- @field private sysobj? vim.SystemObj
--- @field new fun(cmd: string[], extra_spawn_params?: vim.net.transport.ExtraSpawnParams, log: vim.Log): vim.net.TransportRun
local TransportRun = {}

function TransportRun.new(cmd, extra_spawn_params, log)
  return setmetatable({
    cmd = cmd,
    extra_spawn_params = extra_spawn_params,
    log = log,
  }, { __index = TransportRun })
end

--- @param on_read fun(err: string?, data: string?)
... (230 lines truncated)
</file>

<file path="runtime/lua/vim/pack/_lsp.lua">
local M = {}

--- @param cmd string[]
--- @param cwd string
--- @param on_exit fun(out: vim.SystemCompleted)
local function git_cmd(cmd, cwd, on_exit)
  cmd = vim.list_extend({ 'git', '-c', 'gc.auto=0' }, cmd)
  local env = vim.fn.environ() --- @type table<string,string>
  env.GIT_DIR, env.GIT_WORK_TREE, env.GIT_INDEX_FILE = nil, nil, nil
  local sys_opts = { cwd = cwd, text = true, env = env, clear_env = true }
  vim.system(cmd, sys_opts, vim.schedule_wrap(on_exit))
end

local capabilities = {
  codeActionProvider = true,
  documentLinkProvider = { resolveProvider = false },
  documentSymbolProvider = true,
  executeCommandProvider = { commands = { 'delete_plugin', 'update_plugin', 'skip_update_plugin' } },
  hoverProvider = true,
}
--- @type table<string,function>
local methods = {}

--- @param callback function
function methods.initialize(_, callback)
  return callback(nil, { capabilities = capabilities })
end

--- @param callback function
function methods.shutdown(_, callback)
... (355 lines truncated)
</file>

<file path="runtime/lua/vim/pack/health.lua">
local M = {}

local health = vim.health

local function get_lockfile_path()
  return vim.pack._plugin_lock_path or vim.go.packlockfile
end

local function get_plug_dir()
  return vim.fs.joinpath(vim.fn.stdpath('data'), 'site', 'pack', 'core', 'opt')
end

--- @param cmd string[]
--- @param cwd string
local function git_cmd(cmd, cwd)
  cmd = vim.list_extend({ 'git', '-c', 'gc.auto=0' }, cmd)
  local env = vim.fn.environ() --- @type table<string,string>
  env.GIT_DIR, env.GIT_WORK_TREE, env.GIT_INDEX_FILE = nil, nil, nil
  local sys_opts = { cwd = cwd, text = true, env = env, clear_env = true }
  local out = vim.system(cmd, sys_opts):wait() --- @type vim.SystemCompleted
  if out.code ~= 0 then
    return false, ((out.stderr or ''):gsub('\n+$', ''))
  end
  return true, ((out.stdout or ''):gsub('\n+$', ''))
end

local function check_basics()
  health.start('vim.pack: basics')

  -- Requirements
... (310 lines truncated)
</file>

<file path="runtime/lua/vim/pos/_util.lua">
---@brief
--- Unlike `vim.pos`, this module is used to provide utility functions
--- for unpacked `row`, `col`.
---
--- The variable names have some implications:
---
--- - `row`  is used to represent a 0-based index of a line.
--- - `lnum` is used to represent a 1-based index of a line, short for "line number".

local api = vim.api

local M = {}

---@param a_row integer
---@param a_col integer
---@param b_row integer
---@param b_col integer
---@return integer
--- 1: a > b
--- 0: a == b
--- -1: a < b
local function cmp_pos(a_row, a_col, b_row, b_col)
  if a_row == b_row then
    if a_col > b_col then
      return 1
    elseif a_col < b_col then
      return -1
    else
      return 0
    end
... (149 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_meta/misc.lua">
---@meta
-- luacheck: no unused args
error('Cannot require a meta file')

---@alias TSLoggerCallback fun(logtype: 'parse'|'lex', msg: string)

---@class TSParser: userdata
---@field parse fun(self: TSParser, tree: TSTree?, source: integer|string, include_bytes: boolean, timeout_ns: integer?): TSTree?, (Range4|Range6)[]
---@field reset fun(self: TSParser)
---@field included_ranges fun(self: TSParser, include_bytes: boolean?): integer[]
---@field set_included_ranges fun(self: TSParser, ranges: (Range6|TSNode)[])
---@field _set_logger fun(self: TSParser, lex: boolean, parse: boolean, cb: TSLoggerCallback)
---@field _logger fun(self: TSParser): TSLoggerCallback

---@class (exact) TSQueryInfo
---@field captures string[]
---@field patterns table<integer, (integer|string)[][]>
---
---@class TSLangMetadata
---@field major_version integer
---@field minor_version integer
---@field patch_version integer
---
---@class TSLangInfo
---@field abi_version integer
---@field metadata? TSLangMetadata  -- ABI 15 only
---@field state_count integer
---@field fields string[]
---@field symbols table<string,boolean>
---@field supertypes table<string,string[]>
... (56 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_meta/tsnode.lua">
---@meta
-- luacheck: no unused args
error('Cannot require a meta file')

--- @brief A "treesitter node" represents one specific element of the parsed contents of a buffer,
--- which can be captured by a |treesitter-query| for, e.g., highlighting. It is a |userdata|
--- reference to an object held by the treesitter library.
---
--- An instance `TSNode` of a treesitter node supports the following methods.

---@nodoc
---@class TSNode: userdata
local TSNode = {} -- luacheck: no unused

--- Get the node's immediate parent.
--- Prefer |TSNode:child_with_descendant()|
--- for iterating over the node's ancestors.
--- @return TSNode?
function TSNode:parent() end

--- Get the node's next sibling.
--- @return TSNode?
function TSNode:next_sibling() end

--- Get the node's previous sibling.
--- @return TSNode?
function TSNode:prev_sibling() end

--- Get the node's next named sibling.
--- @return TSNode?
... (165 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_meta/tsquery.lua">
---@meta
-- luacheck: no unused args
error('Cannot require a meta file')

-- This could be documented as a module @brief like tsnode/tstree, but without
-- its own section header documenting it as a class ensures it still gets a helptag.

--- Reference to an object held by the treesitter library that is used as a
--- component of the |vim.treesitter.Query| for language feature support.
--- See |treesitter-query| for more about queries or |vim.treesitter.query.parse()|
--- for an example of how to obtain a query object.
---
---@class TSQuery: userdata
local TSQuery = {} -- luacheck: no unused

--- Get information about the query's patterns and captures.
---@nodoc
---@return TSQueryInfo
function TSQuery:inspect() end

--- Disable a specific capture in this query; once disabled the capture cannot be re-enabled.
--- {capture_name} should not include a leading "@".
---
--- Example: To disable the `@variable.parameter` capture from the vimdoc highlights query:
--- ```lua
--- local query = vim.treesitter.query.get('vimdoc', 'highlights')
--- query.query:disable_capture("variable.parameter")
--- vim.treesitter.get_parser():parse()
--- ```
---@param capture_name string
... (16 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_meta/tstree.lua">
---@meta
-- luacheck: no unused args
error('Cannot require a meta file')

--- @brief A "treesitter tree" represents the parsed contents of a buffer, which can be
--- used to perform further analysis. It is a |userdata| reference to an object
--- held by the treesitter library.
---
--- An instance `TSTree` of a treesitter tree supports the following methods.

---@nodoc
---@class TSTree: userdata
local TSTree = {} -- luacheck: no unused

--- Return the root node of this tree.
---@return TSNode
function TSTree:root() end

-- stylua: ignore
---@param start_byte integer
---@param end_byte_old integer
---@param end_byte_new integer
---@param start_row integer
---@param start_col integer
---@param end_row_old integer
---@param end_col_old integer
---@param end_row_new integer
---@param end_col_new integer
---@return TSTree
---@nodoc
... (16 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_fold.lua">
local ts = vim.treesitter

local Range = require('vim.treesitter._range')

local api = vim.api
local nvim_on = require('vim._core.util').nvim_on

---Treesitter folding is done in two steps:
---(1) compute the fold levels with the syntax tree and cache the result (`compute_folds_levels`)
---(2) evaluate foldexpr for each window, which reads from the cache (`foldupdate`)
---@class TS.FoldInfo
---
---@field levels string[] the cached foldexpr result for each line
---@field levels0 integer[] the cached raw fold levels
---
---The range edited since the last invocation of the callback scheduled in on_bytes.
---Should compute fold levels in this range.
---@field on_bytes_range? Range2
---
---The range on which to evaluate foldexpr.
---When in insert mode, the evaluation is deferred to InsertLeave.
---@field foldupdate_range? Range2
---
---The treesitter parser associated with this buffer.
---@field parser? vim.treesitter.LanguageTree
local FoldInfo = {}
FoldInfo.__index = FoldInfo

---@private
---@param buf integer
... (434 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_headings.lua">
local ts = vim.treesitter
local api = vim.api

--- Treesitter-based navigation functions for headings
local M = {}

-- TODO(clason): use runtimepath queries (for other languages)
local heading_queries = {
  vimdoc = [[
    (h1 (heading) @h1)
    (h2 (heading) @h2)
    (h3 (heading) @h3)
    (column_heading (heading) @h4)
  ]],
  markdown = [[
    (setext_heading
      heading_content: (_) @h1
      (setext_h1_underline))
    (setext_heading
      heading_content: (_) @h2
      (setext_h2_underline))
    (atx_heading
      (atx_h1_marker)
      heading_content: (_) @h1)
    (atx_heading
      (atx_h2_marker)
      heading_content: (_) @h2)
    (atx_heading
      (atx_h3_marker)
      heading_content: (_) @h3)
... (112 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_query_linter.lua">
local api = vim.api

local namespace = api.nvim_create_namespace('nvim.treesitter.query_linter')

local M = {}

--- @class QueryLinterNormalizedOpts
--- @field langs string[]
--- @field clear? boolean

--- @alias vim.treesitter.ParseError {msg: string, range: Range4}

--- Contains language dependent context for the query linter
--- @class QueryLinterLanguageContext
--- @field lang string? Current `lang` of the targeted parser
--- @field parser_info table? Parser info returned by vim.treesitter.language.inspect
--- @field is_first_lang boolean Whether this is the first language of a linter run checking queries for multiple `langs`

--- Adds a diagnostic for node in the query buffer
--- @param diagnostics vim.Diagnostic.Set[]
--- @param range Range4
--- @param lint string
--- @param lang string?
local function add_lint_for_node(diagnostics, range, lint, lang)
  local message = lint:gsub('\n', ' ')
  diagnostics[#diagnostics + 1] = {
    lnum = range[1],
    end_lnum = range[3],
    col = range[2],
    end_col = range[4],
... (223 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_range.lua">
local api = vim.api
local util = require('vim.pos._util')

local M = {}

---@class Range2
---@inlinedoc
---@field [1] integer start row
---@field [2] integer end row

---@class Range4
---@inlinedoc
---@field [1] integer start row
---@field [2] integer start column
---@field [3] integer end row
---@field [4] integer end column

---@class Range6
---@inlinedoc
---@field [1] integer start row
---@field [2] integer start column
---@field [3] integer start bytes
---@field [4] integer end row
---@field [5] integer end column
---@field [6] integer end bytes

---@alias Range Range2|Range4|Range6

-- TODO(ofseed): directly use `cmp_pos` from `util` and replace all exported usages.
M.cmp_pos = util.cmp_pos
... (196 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/_select.lua">
local Range = require('vim.treesitter._range')

--- This is (currently only) used for saving what child one is in when doing
--- `select_parent` so that if they later `select_child` on the parent-node,
--- they get back to the child-node they were in instead of the parents first
--- child-node.
---
--- @type {[integer]:{id:string,range:Range4},[any]:any}
local history = {
  --- @type integer?
  bufnr = nil,

  --- @type integer?
  changedtick = nil,

  --- @type string?
  current_node_id = nil,
}

--- The reason for a wrapper around `TSNode` is because we need to store the
--- information about which tstree-range they are in (as a tstree may be
--- disjointed), where region is the return value of
--- `TSTree:included_ranges(false)` with next to eachother ranges combined
--- (e.g. {{0,0,1,1},{1,1,2,2}} -> {{0,0,2,2}}).
---
--- @class vim.treesitter.select.node
--- @field node TSNode
--- @field top vim.treesitter.select.node.top

--- @class vim.treesitter.select.node.top: vim.treesitter.select.node
... (586 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/dev.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on

local Range = require('vim.treesitter._range')

local M = {}

---@class (private) vim.treesitter.dev.TSTreeView
---@field ns integer API namespace
---@field opts vim.treesitter.dev.TSTreeViewOpts
---@field nodes vim.treesitter.dev.Node[]
---@field named vim.treesitter.dev.Node[]
local TSTreeView = {}

---@class (private) vim.treesitter.dev.TSTreeViewOpts
---@field anon boolean If true, display anonymous nodes.
---@field lang boolean If true, display the language alongside each node.
---@field indent integer Number of spaces to indent nested lines.

---@class (private) vim.treesitter.dev.Node
---@field node TSNode Treesitter node
---@field field string? Node field
---@field depth integer Depth of this node in the tree
---@field text string? Text displayed in the inspector for this node. Not computed until the
---                    inspector is drawn.
---@field lang string Source language of this node

---@class (private) vim.treesitter.dev.Injection
---@field lang string Source language of this injection
---@field root TSNode Root node of the injection
... (675 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/health.lua">
local M = {}
local ts = vim.treesitter
local health = vim.health

--- Performs a healthcheck for treesitter integration
function M.check()
  health.start('Treesitter features')

  health.info(
    string.format(
      'Treesitter ABI support: min %d, max %d',
      ts.minimum_language_version,
      ts.language_version
    )
  )

  local can_wasm = vim._ts_add_language_from_wasm ~= nil
  health.info(string.format('WASM parser support: %s', tostring(can_wasm)))

  health.start('Treesitter parsers')
  local parsers = vim.api.nvim_get_runtime_file('parser/*', true)

  ---@class ParserEntry
  ---@field name string
  ---@field path string
  ---@field index integer runtime path index (unique)

  local sorted_parsers = {} ---@type ParserEntry[]

  for i, parser in ipairs(parsers) do
... (84 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/highlighter.lua">
local api = vim.api
local query = vim.treesitter.query
local Range = require('vim.treesitter._range')
local cmp_lt = Range.cmp_pos.lt

local ns = api.nvim_create_namespace('nvim.treesitter.highlighter')

---@alias vim.treesitter.highlighter.Iter fun(end_line: integer|nil, end_col: integer|nil): integer, TSNode, vim.treesitter.query.TSMetadata, TSQueryMatch, TSTree

---@class (private) vim.treesitter.highlighter.Query
---@field private _query vim.treesitter.Query?
---@field private lang string
---@field private hl_cache table<integer,integer>
local TSHighlighterQuery = {}
TSHighlighterQuery.__index = TSHighlighterQuery

---@private
---@param lang string
---@param query_string string?
---@return vim.treesitter.highlighter.Query
function TSHighlighterQuery.new(lang, query_string)
  local self = setmetatable({}, TSHighlighterQuery)
  self.lang = lang
  self.hl_cache = {}

  if query_string then
    self._query = query.parse(lang, query_string)
  else
    self._query = query.get(lang, 'highlights')
  end
... (594 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/language.lua">
local api = vim.api

local M = {}

---@type table<string,string?>
local ft_to_lang = {
  help = 'vimdoc',
  checkhealth = 'vimdoc',
}

--- Returns the filetypes for which a parser named {lang} is used.
---
--- The list includes {lang} itself plus all filetypes registered via
--- |vim.treesitter.language.register()|.
---
--- @param lang string Name of parser
--- @return string[] filetypes
function M.get_filetypes(lang)
  local r = { lang } ---@type string[]
  for ft, p in pairs(ft_to_lang) do
    if p == lang then
      r[#r + 1] = ft
    end
  end
  return r
end

--- Returns the language name to be used when loading a parser for {filetype}.
---
--- If no language has been explicitly registered via |vim.treesitter.language.register()|,
... (175 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/languagetree.lua">
--- @brief A [LanguageTree]() contains a tree of parsers: the root treesitter parser for {lang} and
--- any "injected" language parsers, which themselves may inject other languages, recursively.
--- For example a Lua buffer containing some Vimscript commands needs multiple parsers to fully
--- understand its contents.
---
--- To create a LanguageTree (parser object) for a given buffer and language, use:
---
--- ```lua
--- local parser = vim.treesitter.get_parser(bufnr, lang)
--- ```
---
--- (where `bufnr=0` means current buffer). `lang` defaults to 'filetype'.
--- Note: currently the parser is retained for the lifetime of a buffer but this may change;
--- a plugin should keep a reference to the parser object if it wants incremental updates.
---
--- Whenever you need to access the current syntax tree, parse the buffer:
---
--- ```lua
--- local tree = parser:parse({ start_row, end_row })
--- ```
---
--- This returns a table of immutable |treesitter-tree| objects representing the current state of
--- the buffer. When the plugin wants to access the state after a (possible) edit it must call
--- `parse()` again. If the buffer wasn't edited, the same tree will be returned again without extra
--- work. If the buffer was parsed before, incremental parsing will be done of the changed parts.
---
--- Note: To use the parser directly inside a |nvim_buf_attach()| Lua callback, you must call
--- |vim.treesitter.get_parser()| before you register your callback. But preferably parsing
--- shouldn't be done directly in the change callback anyway as they will be very frequent. Rather
--- a plugin that does any kind of analysis on a tree should use a timer to throttle too frequent
... (1467 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter/query.lua">
--- @brief This Lua |treesitter-query| interface allows you to create queries and use them to parse
--- text. See |vim.treesitter.query.parse()| for a working example.

local api = vim.api
local nvim_on = require('vim._core.util').nvim_on
local language = require('vim.treesitter.language')
local memoize = vim.func._memoize
local cmp_ge = require('vim.treesitter._range').cmp_pos.ge

local MODELINE_FORMAT = '^;+%s*inherits%s*:?%s*([a-z_,()]+)%s*$'
local EXTENDS_FORMAT = '^;+%s*extends%s*$'

local M = {}

---Parsed query, see |vim.treesitter.query.parse()|
---
---@class vim.treesitter.Query
---@field lang string parser language name
---@field captures string[] list of (unique) capture names defined in query
---@field info vim.treesitter.QueryInfo query context (e.g. captures, predicates, directives)
---@field has_conceal_line boolean whether the query sets conceal_lines metadata
---@field has_combined_injections boolean whether the query contains combined injections
---@field query TSQuery userdata query object
---@field private _processed_patterns table<integer, vim.treesitter.query.ProcessedPattern>
local Query = {}
Query.__index = Query

---@param name string
local function is_directive(name)
  return string.sub(name, -1) == '!'
... (1143 lines truncated)
</file>

<file path="runtime/lua/vim/ui/clipboard/osc52.lua">
local M = {}

--- Return the OSC 52 escape sequence
---
--- @param clipboard string The clipboard to read from or write to
--- @param contents string The Base64 encoded contents to write to the clipboard, or '?' to read
---                        from the clipboard
local function osc52(clipboard, contents)
  return string.format('\027]52;%s;%s\027\\', clipboard, contents)
end

--- @param reg string
--- @return fun(lines: string[])
function M.copy(reg)
  local clipboard = reg == '+' and 'c' or 'p'
  return function(lines)
    local s = table.concat(lines, '\n')
    -- The data to be written here can be quite long.
    vim.api.nvim_ui_send(osc52(clipboard, vim.base64.encode(s)))
  end
end

--- @param reg string
--- @return fun(): string[]|0
function M.paste(reg)
  local clipboard = reg == '+' and 'c' or 'p'
  return function()
    local contents = nil --- @type string?
    -- timeout=0: we manage the staged 1s/9s timeout via vim.wait below.
    local id = vim.tty.request(osc52(clipboard, '?'), { timeout = 0 }, function(resp)
... (45 lines truncated)
</file>

<file path="runtime/lua/vim/ui/img/_kitty.lua">
---Kitty graphics protocol implementation for vim.ui.img.
local M = {}

local generate_id = (function()
  local bit = require('bit')
  local NVIM_PID_BITS = 10

  local nvim_pid = 0
  local cnt = 30

  ---@return integer
  return function()
    if nvim_pid == 0 then
      local pid = vim.fn.getpid()
      nvim_pid = bit.band(bit.bxor(pid, bit.rshift(pid, 5), bit.rshift(pid, NVIM_PID_BITS)), 0x3FF)
    end
    cnt = cnt + 1
    return bit.bor(bit.lshift(nvim_pid, 24 - NVIM_PID_BITS), cnt)
  end
end)()

---Build a Kitty graphics protocol escape sequence.
---@param control table<string, string|number>
---@param payload? string
---@return string
local function seq(control, payload)
  local parts = { '\027_G' }

  local tmp = {}
  for k, v in pairs(control) do
... (178 lines truncated)
</file>

<file path="runtime/lua/vim/ui/img.lua">
local nvim_on = require('vim._core.util').nvim_on

local M = {}

---@brief
---
---EXPERIMENTAL: This API may change in the future. Its semantics are not yet finalized.
---
---This provides a functional API for displaying images in Nvim.
---Currently supports PNG images via the Kitty graphics protocol.
---
---To override the image backend, replace `vim.ui.img` with your own
---implementation providing set/get/del.
---
---Examples:
---
---```lua
----- Load image bytes from disk and display at row 5, column 10
---local id = vim.ui.img.set(
---  vim.fn.readblob('/path/to/img.png'),
---  { row = 5, col = 10, width = 40, height = 20, zindex = 50 }
---)
---
----- Update the image position
---vim.ui.img.set(id, { row = 8, col = 12 })
---
----- Retrieve the current image opts
---local opts = vim.ui.img.get(id)
---
----- Remove the image
... (122 lines truncated)
</file>

<file path="runtime/lua/vim/_comment.lua">
---@class vim._comment.Parts
---@field left string Left part of comment
---@field right string Right part of comment

--- Get 'commentstring' at cursor
---@param ref_position [integer,integer]
---@return string
local function get_commentstring(ref_position)
  local buf_cs = vim.bo.commentstring

  local ts_parser = vim.treesitter.get_parser(0, '')
  if not ts_parser then
    return buf_cs
  end

  -- Try to get 'commentstring' associated with local tree-sitter language.
  -- This is useful for injected languages (like markdown with code blocks).
  local row, col = ref_position[1] - 1, ref_position[2]
  local ref_range = { row, col, row, col + 1 }

  -- Get 'commentstring' from tree-sitter captures' metadata.
  -- Traverse backwards to prefer narrower captures.
  local caps = vim.treesitter.get_captures(0, { row, col })
  for i = #caps, 1, -1 do
    local id, metadata = caps[i].id, caps[i].metadata
    local md_cms = metadata['bo.commentstring'] or metadata[id] and metadata[id]['bo.commentstring']

    if md_cms then
      return md_cms
    end
... (243 lines truncated)
</file>

<file path="runtime/lua/vim/_init_packages.lua">
local pathtrails = {} --- @type table<string,true> ta
vim._so_trails = {} --- @type string[]
for s in (package.cpath .. ';'):gmatch('[^;]*;') do
  s = s:sub(1, -2) -- Strip trailing semicolon
  -- Find out path patterns. pathtrail should contain something like
  -- /?.so, \?.dll. This allows not to bother determining what correct
  -- suffixes are.
  local pathtrail = s:match('[/\\][^/\\]*%?.*$')
  if pathtrail and not pathtrails[pathtrail] then
    pathtrails[pathtrail] = true
    table.insert(vim._so_trails, pathtrail)
  end
end

--- @param name string
function vim._load_package(name)
  local basename = name:gsub('%.', '/')
  local paths = { 'lua/' .. basename .. '.lua', 'lua/' .. basename .. '/init.lua' }
  local found = vim.api.nvim__get_runtime(paths, false, { is_lua = true })
  if #found > 0 then
    local f, err = loadfile(found[1])
    return f or error(err)
  end

  local so_paths = {}
  for _, trail in ipairs(vim._so_trails) do
    local path = 'lua' .. trail:gsub('?', basename) -- so_trails contains a leading slash
    table.insert(so_paths, path)
  end

... (72 lines truncated)
</file>

<file path="runtime/lua/vim/_inspector.lua">
--- @diagnostic disable:no-unknown

--- @class (private) vim._inspector.Extmark
--- @field id integer
--- @field row integer
--- @field col integer
--- @field end_row integer
--- @field end_col integer
--- @field opts vim.api.keyset.extmark_details & { hl_group_link?: string }
--- @field ns_id integer
--- @field ns string

--- @class vim._inspector.Filter
--- @inlinedoc
---
--- Include syntax based highlight groups.
--- (default: `true`)
--- @field syntax boolean
---
--- Include treesitter based highlight groups.
--- (default: `true`)
--- @field treesitter boolean
---
--- Include extmarks. When `all`, then extmarks without a `hl_group` will also be included.
--- (default: true)
--- @field extmarks boolean|"all"
---
--- Include semantic token highlights.
--- (default: true)
--- @field semantic_tokens boolean
... (269 lines truncated)
</file>

<file path="runtime/lua/vim/_meta.lua">
--- @meta
-- This file is NOT generated, edit it directly.
error('Cannot require a meta file')

--- @alias elem_or_list<T> T|T[]

---@type uv
vim.uv = ...

--- The following modules are loaded specially in _init_packages.lua

vim.F = require('vim.F')
vim._watch = require('vim._watch')
---@diagnostic disable-next-line: no-unknown
vim.async = require('vim.async')
vim.diagnostic = require('vim.diagnostic')
vim.filetype = require('vim.filetype')
vim.fs = require('vim.fs')
vim.func = require('vim.func')
vim.glob = require('vim.glob')
vim.health = require('vim.health')
vim.hl = require('vim.hl')
vim.inspect = require('vim.inspect')
vim.iter = require('vim.iter')
vim.keymap = require('vim.keymap')
vim.loader = require('vim.loader')
vim.log = require('vim.log')
vim.lsp = require('vim.lsp')
vim.net = require('vim.net')
vim.pack = require('vim.pack')
... (20 lines truncated)
</file>

<file path="runtime/lua/vim/_watch.lua">
local uv = vim.uv
local log = vim.log.new({ name = 'nvim-watch' })

local M = {}

--- @enum vim._watch.FileChangeType
--- Types of events watchers will emit.
M.FileChangeType = {
  Created = 1,
  Changed = 2,
  Deleted = 3,
}

--- A glob string or compiled LPeg pattern. Strings match full paths using `/` separators.
--- Glob syntax follows [vim.glob] (LSP 3.17).
--- @alias vim._watch.Pattern string|vim.lpeg.Pattern

--- A list matches if any of its patterns matches. An empty list matches nothing.
--- @alias vim._watch.Filter vim._watch.Pattern|vim._watch.Pattern[]

--- Option and rule tables must not be modified while watching.
--- @class vim._watch.Opts
---
--- @field debounce? integer ms
---
--- Handles watcher failures and invalid globs, with root and pattern context in the message.
--- Invalid globs are skipped. Defaults to logging at ERROR in nvim-watch.log.
--- @field on_error? fun(err: string)
---
--- Only changes matching this filter are reported. Parent directories remain watched for matching
... (645 lines truncated)
</file>

<file path="runtime/lua/vim/async.lua">
local core = require('vim.async._core')
local validate = vim.validate
local new_queue = require('vim.async._queue')
local runtime = require('vim.async._runtime')
local F = vim.F

--- Structured async API for Lua code that waits on event-loop work.
---
--- `vim.async` lets Lua code wait for timers, callbacks, and other tasks
--- without blocking Nvim's event loop. Async work runs inside tasks, which can
--- pause at checkpoints and manage child tasks created while they are running.
---
--- Start async work with [vim.async.run()]. Inside a task, use
--- [vim.async.await()] to wait for callback-style APIs or other tasks without
--- blocking the event loop. Use [vim.async.pawait()] when an awaited operation
--- can fail and the current task should continue.
---
--- Examples in this help use `local async = vim.async` for brevity.
---
--- Example: run async work without blocking Nvim:
---
--- ```lua
--- local async = vim.async
---
--- async.run(function()
---   vim.notify('waiting...')
---   async.sleep(1000)
---   vim.notify('done')
--- end)
--- ```
... (288 lines truncated)
</file>

<file path="runtime/lua/vim/diagnostic.lua">
local api = vim.api
local nvim_on = require('vim._core.util').nvim_on

-- TODO(lewis6991): deprecate some top level functions in favour of the submodule version
-- e.g. vim.diagnostic.get_namespace() -> vim.diagnostic.namespace.get()
local M = vim._defer_require('vim.diagnostic', {
  _config = ..., --- @module 'vim.diagnostic._config'
  _display = ..., --- @module 'vim.diagnostic._display'
  _float = ..., --- @module 'vim.diagnostic._float'
  _jump = ..., --- @module 'vim.diagnostic._jump'
  _severity = ..., --- @module 'vim.diagnostic._severity'
  _store = ..., --- @module 'vim.diagnostic._store'
  _handlers = ..., --- @module 'vim.diagnostic._handlers'
})

--- Diagnostics use the same indexing as the rest of the Nvim API (i.e. 0-based
--- rows, and columns given as 0-based byte indices). |api-indexing|
--- @class vim.Diagnostic.Set
---
--- The starting line of the diagnostic (0-indexed)
--- @field lnum integer
---
--- The starting column of the diagnostic (0-indexed)
--- (default: `0`)
--- @field col? integer
---
--- The final line of the diagnostic (0-indexed)
--- (default: `lnum`)
--- @field end_lnum? integer
---
... (1120 lines truncated)
</file>

<file path="runtime/lua/vim/F.lua">
local F = {}

-- Failure returns no values, so every result becomes optional.
--- @nodoc
--- @alias vim.F.OptionalReturns<T> { [K in keyof T]: T[K]|nil }

--- Returns the first argument which is not nil.
---
--- If all arguments are nil, returns nil.
---
--- Examples:
---
--- ```lua
--- local a = nil
--- local b = nil
--- local c = 42
--- local d = true
--- assert(vim.F.if_nil(a, b, c, d) == 42)
--- ```
---
--- @deprecated
--- @generic T
--- @param ... T
--- @return T
function F.if_nil(...)
  vim.deprecate('vim.F.if_nil', 'vim.nonnil', '0.15')
  return vim.nonnil(...)
end

-- Use in combination with pcall
... (54 lines truncated)
</file>

<file path="runtime/lua/vim/filetype.lua">
local api = vim.api
local fn = vim.fn

local M = {}

--- @alias vim.filetype.mapfn fun(path:string,bufnr:integer, ...):string?, fun(b:integer)?, boolean?
--- @alias vim.filetype.mapopts { priority: number }
--- @alias vim.filetype.maptbl [string|vim.filetype.mapfn, vim.filetype.mapopts]
--- @alias vim.filetype.mapping.value string|vim.filetype.mapfn|vim.filetype.maptbl
--- @alias vim.filetype.mapping table<string,vim.filetype.mapping.value>

--- @class vim.filetype.mapping.sorted
--- @nodoc
--- @field [1] string parent pattern
--- @field [2] string pattern
--- @field [3] string|vim.filetype.mapfn
--- @field [4] integer priority

--- @param ft string|vim.filetype.mapfn
--- @param priority? integer
--- @return vim.filetype.maptbl
local function starsetf(ft, priority)
  return {
    function(path, bufnr)
      -- Note: when `ft` is a function its return value may be nil.
      local f = type(ft) ~= 'function' and ft or ft(path, bufnr)
      if not vim.g.ft_ignore_pat then
        return f
      end

... (3395 lines truncated)
</file>

<file path="runtime/lua/vim/fs.lua">
--- @brief
--- [vim.fs.copy()]()
---
--- Use |filecopy()| or |uv.fs_copyfile()| to performantly copy an existing file.
---
--- Example:
---
--- ```lua
--- vim.fn.filecopy('foo.txt', 'bar.txt')
--- ```
---
--- [vim.fs.exists()]()
---
--- Use |uv.fs_stat()| to check a file's type, and whether it exists.
---
--- Example:
---
--- ```lua
--- if vim.uv.fs_stat(file) then
---   vim.print('file exists')
--- end
--- ```
---
--- [vim.fs.read()]()
---
--- You can use |readblob()| to get a file's contents without explicitly opening/closing it.
--- Or use |io.lines()| to iterate lines in a text file.
---
--- Example:
--- ```lua
... (1087 lines truncated)
</file>

<file path="runtime/lua/vim/func.lua">
local M = {}

-- TODO(lewis6991): Private for now until:
-- - There are other places in the codebase that could benefit from this
--   (e.g. LSP), but might require other changes to accommodate.
-- - I don't think the story around `hash` is completely thought out. We
--   may be able to have a good default hash by hashing each argument,
--   so basically a better 'concat'.
-- - Need to support multi level caches. Can be done by allow `hash` to
--   return multiple values.
--
--- Memoizes a function {fn} using {hash} to hash the arguments.
---
--- Internally uses a |lua-weaktable| to cache the results of {fn} meaning the
--- cache will be invalidated whenever Lua does garbage collection.
---
--- The cache can also be manually invalidated by calling `:clear()` on the returned object.
--- Calling this function with no arguments clears the entire cache; otherwise, the arguments will
--- be interpreted as function inputs, and only the cache entry at their hash will be cleared.
---
--- The memoized function returns shared references so be wary about
--- mutating return values.
---
--- @generic F: function
--- @param hash integer|string|function Hash function to create a hash to use as a key to
---     store results. Possible values:
---     - When integer, refers to the index of a {fn} argument (of any type) to hash.
---     - When function, is evaluated using the same arguments passed to {fn}.
---     - When "concat", hash is determined by string-concatenating all {fn} arguments.
---     - When "concat-n", hash is determined by string-concatenating the first n {fn} arguments.
... (11 lines truncated)
</file>

<file path="runtime/lua/vim/glob.lua">
--- @brief Glob-to-LPeg Converter (Peglob)
--- This module converts glob patterns to LPeg patterns according to the LSP 3.17 specification:
--- https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#pattern
---
--- Glob grammar overview:
--- - `*` to match zero or more characters in a path segment
--- - `?` to match on one character in a path segment
--- - `**` to match any number of path segments, including none
--- - `{}` to group conditions (e.g. `*.{ts,js}` matches TypeScript and JavaScript files)
--- - `[]` to declare a range of characters to match in a path segment
---   (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
--- - `[!...]` to negate a range of characters to match in a path segment
---   (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
---
--- Additional constraints:
--- - A Glob pattern must match an entire path, with partial matches
---   considered failures.
--- - The pattern only determines success or failure, without specifying
---   which parts correspond to which characters.
--- - A *path segment* is the portion of a path between two adjacent path
---   separators (`/`), or between the start/end of the path and the nearest
---   separator.
--- - The `**` (*globstar*) pattern matches zero or more path segments,
---   including intervening separators (`/`). Within pattern strings, `**`
---   must be delimited by path separators (`/`) or pattern boundaries and
---   cannot be adjacent to any characters other than `/`. If `**` is not
---   the final element, it must be followed by `/`.
--- - `{}` (*braced conditions*) contains valid Glob patterns as branches,
---   separated by commas. Commas are exclusively used for separating
---   branches and cannot appear within a branch for any other purpose.
... (348 lines truncated)
</file>

<file path="runtime/lua/vim/health.lua">
--- @brief
---
--- vim.health is a minimal framework to help users troubleshoot configuration and any other
--- environment conditions that a plugin might care about. Nvim ships with healthchecks for
--- configuration, performance, python support, ruby support, clipboard support, and more.
---
--- To run all healthchecks, use:
--- ```vim
--- :checkhealth
--- ```
--- Plugin authors are encouraged to write new healthchecks. |health-dev|
---
---<pre>help
--- COMMANDS                                *health-commands*
---
---                                                              *:che* *:checkhealth*
--- :che[ckhealth]  Run all healthchecks.
---                                         *E5009*
---                 Nvim depends on |$VIMRUNTIME|, 'runtimepath' and 'packpath' to
---                 find the standard "runtime files" for syntax highlighting,
---                 filetype-specific behavior, and standard plugins (including
---                 :checkhealth).  If the runtime files cannot be found then
---                 those features will not work.
---
--- :che[ckhealth] {plugins}
---                 Run healthcheck(s) for one or more plugins. E.g. to run only
---                 the standard Nvim healthcheck: >vim
---                         :checkhealth vim.health
--- <
---                 To run the healthchecks for the "foo" and "bar" plugins
... (551 lines truncated)
</file>

<file path="runtime/lua/vim/hl.lua">
local api = vim.api

local M = {}

--- Table with default priorities used for highlighting:
--- - `syntax`: `50`, used for standard syntax highlighting
--- - `treesitter`: `100`, used for treesitter-based highlighting
--- - `semantic_tokens`: `125`, used for LSP semantic token highlighting
--- - `diagnostics`: `150`, used for code analysis such as diagnostics
--- - `user`: `200`, used for user-triggered highlights such as LSP document
---   symbols or `hl_op` autocommands
M.priorities = {
  syntax = 50,
  treesitter = 100,
  semantic_tokens = 125,
  diagnostics = 150,
  user = 200,
}

--- @class vim.hl.range.Opts
--- @inlinedoc
---
--- Type of range. See [getregtype()]
--- (default: `'v'` i.e. charwise)
--- @field regtype? string
---
--- Indicates whether the range is end-inclusive
--- (default: `false`)
--- @field inclusive? boolean
---
... (209 lines truncated)
</file>

<file path="runtime/lua/vim/inspect.lua">
--- @class (private) vim.InspectModule
--- @overload fun(root: any, options?: vim.inspect.Opts): string
local inspect = {
  _VERSION = 'inspect.lua 3.1.0',
  _URL = 'http://github.com/kikito/inspect.lua',
  _DESCRIPTION = 'human-readable representations of tables',
  _LICENSE = [[
    MIT LICENSE

    Copyright (c) 2013 Enrique García Cota

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:

    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  ]],
... (453 lines truncated)
</file>

<file path="runtime/lua/vim/iter.lua">
--- @brief
---
--- [vim.iter()]() is an interface for [iterable]s: it wraps a table or function argument into an
--- [Iter]() object with methods (such as [Iter:filter()] and [Iter:map()]) that transform the
--- underlying source data. These methods can be chained to create iterator "pipelines": the output
--- of each pipeline stage is input to the next stage. The first stage depends on the type passed to
--- `vim.iter()`:
---
--- - Lists or arrays (|lua-list|) yield only the value of each element.
---   - Holes (nil values) are allowed (but discarded).
---   - Use pairs() to treat array/list tables as dicts (preserve holes and non-contiguous integer
---     keys): `vim.iter(pairs(…))`.
---   - Use |Iter:enumerate()| to also pass the index to the next stage.
---     - Or initialize with ipairs(): `vim.iter(ipairs(…))`.
--- - Non-list tables (|lua-dict|) yield both the key and value of each element.
--- - Function |iterator|s yield all values returned by the underlying function.
--- - Tables with a |__call()| metamethod are treated as function iterators.
---
--- The iterator pipeline terminates when the underlying |iterable| is exhausted (for function
--- iterators this means it returned nil).
---
--- Note: `vim.iter()` scans table input to decide if it is a list or a dict; to avoid this cost you
--- can wrap the table with an iterator e.g. `vim.iter(ipairs({…}))`, but that precludes the use of
--- |list-iterator| operations such as |IterArray:rev()|).
---
--- Examples:
---
--- ```lua
--- local it = vim.iter({ 1, 2, 3, 4, 5 })
--- it:map(function(v)
... (1313 lines truncated)
</file>

<file path="runtime/lua/vim/keymap.lua">
local keymap = {}

--- Table of |:map-arguments|.
--- Same as |nvim_set_keymap()| {opts}, except:
--- - {replace_keycodes} defaults to `true` if "expr" is `true`.
--- - {noremap} is not supported; use {remap} instead (see below).
---
--- Also accepts:
--- @class vim.keymap.set.Opts : vim.api.keyset.keymap
--- @inlinedoc
---
--- Creates buffer-local mapping, `0` for current buffer.
--- @field buf? integer
---
--- Make the mapping recursive. Inverse of {noremap}.
--- (Default: `false`)
--- @field remap? boolean

--- Defines a |mapping| of |keycodes| to a function or keycodes. If `lhs` is a list, defines
--- a mapping for each (mode, lhs) pair.
---
--- Examples:
---
--- ```lua
--- -- Map "x" to a Lua function:
--- vim.keymap.set('n', 'x', function() print('real lua function') end)
--- -- Map "<leader>x" to multiple modes for the current buffer:
--- vim.keymap.set({'n', 'v'}, '<leader>x', vim.lsp.buf.references, { buf = 0 })
--- -- Map <Tab> to an expression (|:map-<expr>|):
--- vim.keymap.set('i', '<Tab>', function()
... (143 lines truncated)
</file>

<file path="runtime/lua/vim/loader.lua">
local fs = vim.fs -- "vim.fs" is a dependency, so must be loaded early.
local uv = vim.uv
local uri_encode = vim.uri_encode --- @type function

--- @type (fun(modename: string): fun()|string)[]
local loaders = package.loaders
local _loadfile = loadfile

local VERSION = 4
local is_appimage = (os.getenv('APPIMAGE') ~= nil)

local M = {}

--- @alias vim.loader.CacheHash {mtime: {nsec: integer, sec: integer}, size: integer, type?: string}
--- @alias vim.loader.CacheEntry {hash:vim.loader.CacheHash, chunk:string}

--- @class vim.loader.find.Opts
--- @inlinedoc
---
--- Search for modname in the runtime path.
--- (default: `true`)
--- @field rtp? boolean
---
--- Extra paths to search for modname
--- (default: `{}`)
--- @field paths? string[]
---
--- List of patterns to use when searching for modules.
--- A pattern is a string added to the basename of the Lua module being searched.
--- (default: `{"/init.lua", ".lua"}`)
... (514 lines truncated)
</file>

<file path="runtime/lua/vim/log.lua">
--- @brief
---
--- The |vim.log| module provides file-backed logger instances.
---
--- Use `vim.log.new()` to create a logger, it exposes five writer functions:
--- `trace()`, `debug()`, `info()`, `warn()`, and `error()`.
--- They are correspond to log levels defined by |vim.log.levels|.
---
--- Example:
---
--- ```lua
--- local log = vim.log.new({ name = 'my-plugin', })
--- -- By default, logs will be written to {name}.log under `stdpath('log')`.
---
--- log.error('request failed', 'timeout')
--- -- This will write a line like the following to the log file:
--- --   [ERROR][2024-01-01 12:00:00] source.lua:123    request failed    timeout
---
--- -- Set the log level to `INFO`, otherwise the `info()` call below would be ignored,
--- -- since the default level is `WARN`.
--- vim.log.set_level(log, vim.log.levels.INFO)
--- log.info('starting', { buf = vim.api.nvim_get_current_buf() })
--- -- This will write a line like the following to the log file:
--- --   [INFO][2024-01-01 12:01:00] source.lua:124    starting    { buf = 1 }
--- ```
---
--- You can also provide a custom formatter function to customize the log output format.

---@class vim.Log
---
... (250 lines truncated)
</file>

<file path="runtime/lua/vim/lsp.lua">
local api = vim.api
local validate = vim.validate
local nvim_on = require('vim._core.util').nvim_on

local lsp = vim._defer_require('vim.lsp', {
  _capability = ..., --- @module 'vim.lsp._capability'
  _changetracking = ..., --- @module 'vim.lsp._changetracking'
  _folding_range = ..., --- @module 'vim.lsp._folding_range'
  _snippet_grammar = ..., --- @module 'vim.lsp._snippet_grammar'
  _watchfiles = ..., --- @module 'vim.lsp._watchfiles'
  buf = ..., --- @module 'vim.lsp.buf'
  client = ..., --- @module 'vim.lsp.client'
  codelens = ..., --- @module 'vim.lsp.codelens'
  completion = ..., --- @module 'vim.lsp.completion'
  diagnostic = ..., --- @module 'vim.lsp.diagnostic'
  document_color = ..., --- @module 'vim.lsp.document_color'
  handlers = ..., --- @module 'vim.lsp.handlers'
  inlay_hint = ..., --- @module 'vim.lsp.inlay_hint'
  inline_completion = ..., --- @module 'vim.lsp.inline_completion'
  linked_editing_range = ..., --- @module 'vim.lsp.linked_editing_range'
  log = ..., --- @module 'vim.lsp.log'
  on_type_formatting = ..., --- @module 'vim.lsp.on_type_formatting'
  protocol = ..., --- @module 'vim.lsp.protocol'
  rpc = ..., --- @module 'vim.lsp.rpc'
  semantic_tokens = ..., --- @module 'vim.lsp.semantic_tokens'
  -- Work around EmmyLuaLs/emmylua-analyzer-rust#1238 for function exports.
  --- @type fun(pattern: string, flags: string): table[]|vim.NIL
  tagfunc = ..., --- @module 'vim.lsp.tagfunc'
  util = ..., --- @module 'vim.lsp.util'
})
... (1573 lines truncated)
</file>

<file path="runtime/lua/vim/net.lua">
local M = {}

local http_methods = {
  GET = true,
  POST = true,
  PUT = true,
  PATCH = true,
  HEAD = true,
  DELETE = true,
}

---@alias vim.net.request.ResponseFunc fun(err: string?, response: vim.net.request.Response?)
---@alias vim.net.HttpMethod string "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "DELETE"

---@class vim.net.request.Opts
---@inlinedoc
---
---Enables verbose output.
---@field verbose? boolean
---
---Number of retries on transient failures (default: 3).
---@field retry? integer
---
---Request body for POST/PUT/PATCH requests.
---@field body? string
---
---File path to save the response body to.
---@field outpath? string
---
---Buffer to save the response body to.
... (158 lines truncated)
</file>

<file path="runtime/lua/vim/pack.lua">
--- @brief
---
--- Install, update, and delete external plugins. WARNING: It is still considered
--- experimental, yet should be stable enough for daily use.
---
---Manages plugins only in a dedicated [vim.pack-directory]() (see |packages|):
---`site/pack/core/opt` subdirectory of "data" |standard-path|. Subdirectory `site` of "data"
---standard path needs to be part of 'packpath'. It usually is, but might not be
---in cases like |--clean| or setting |$XDG_DATA_HOME| during startup.
---Plugin's subdirectory name matches plugin's name in specification.
---It is assumed that all plugins in the directory are managed exclusively by `vim.pack`.
---
---Uses Git to manage plugins and requires present `git` executable.
---Target plugins should be Git repositories with versions as named tags
---following semver convention `v<major>.<minor>.<patch>` (with or without `v` prefix).
---Like `v1.2.0` or `1.2.0`, but not `1.2` or `v1`.
---
---The latest state of all managed plugins is stored inside a [vim.pack-lockfile]()
---located at |'packlockfile'|.
---It is a JSON file that is used to persistently track data about plugins.
---For a more robust config treat lockfile like its part: put under version control, etc.
---In this case all plugins from the lockfile will be installed at once (in alphabetical order) and
---at lockfile's revision (instead of inferring from `version`). This is done on the very first
---`vim.pack` function call to ensure that lockfile is aligned with what is actually on the disk.
---Lockfile should not be edited by hand. Corrupted data for installed plugins is repaired
---(including after deleting whole file), but `version` fields will be missing
---for not yet added plugins.
---
---[vim.pack-examples]()
---
... (1695 lines truncated)
</file>

<file path="runtime/lua/vim/pos.lua">
---@brief
---
--- EXPERIMENTAL: This API is unstable, do not use it. Its semantics are not yet finalized.
--- Subscribe to this issue to stay updated: https://github.com/neovim/neovim/issues/25509
---
--- Provides operations to compare, calculate, and convert positions represented by |vim.Pos|
--- objects.

local api = vim.api
local validate = vim.validate
local util = require('vim.pos._util')

--- Represents a buffer position based on [api-indexing] (0-indexed, end-exclusive ranges).
--- Call `vim.pos()` to create a new `vim.Pos` by passing the {buf}, {row}, and {col} of a position.
---
--- Example:
--- ```lua
--- local pos1 = vim.pos(0, 3, 5)
--- local pos2 = vim.pos(0, 4, 0)
---
--- -- Operators are overloaded for comparing two `vim.Pos` objects.
--- if pos1 < pos2 then
---   print("pos1 comes before pos2")
--- end
---
--- if pos1 ~= pos2 then
---   print("pos1 and pos2 are different positions")
--- end
--- ```
---
... (326 lines truncated)
</file>

<file path="runtime/lua/vim/provider.lua">
local M = vim._defer_require('vim.provider', {
  perl = ..., --- @module 'vim.provider.perl'
  python = ..., --- @module 'vim.provider.python'
  ruby = ..., --- @module 'vim.provider.ruby'
})

return M
</file>

<file path="runtime/lua/vim/range.lua">
---@brief
---
--- EXPERIMENTAL: This API is unstable, do not use it. Its semantics are not yet finalized.
--- Subscribe to this issue to stay updated: https://github.com/neovim/neovim/issues/25509
---
--- Provides operations to compare, calculate, and convert ranges represented by |vim.Range|
--- objects.

local validate = vim.validate
local api = vim.api
local util = require('vim.pos._util')

--- Represents a range based on [api-indexing] (0-indexed, end-exclusive). Call `vim.range()` to
--- create a new range by passing start and end positions (|vim.Pos|).
---
--- Both positions must have the same optional fields, which may enable additional capabilities
--- (such as format conversions).
---
--- Example:
--- ```lua
--- local pos1 = vim.pos(0, 3, 5)
--- local pos2 = vim.pos(0, 4, 0)
---
--- -- Create a range from two positions.
--- local range1 = vim.range(pos1, pos2)
--- -- Or create a range from four integers representing start and end positions.
--- local range2 = vim.range(0, 3, 5, 4, 0)
---
--- -- Because `vim.Range` is end exclusive, `range1` and `range2` both represent
--- -- a range starting at the row 3, column 5 and ending at where the row 3 ends
... (442 lines truncated)
</file>

<file path="runtime/lua/vim/re.lua">
--- @diagnostic disable: no-unknown
--
-- Copyright 2007-2023, Lua.org & PUC-Rio  (see 'lpeg.html' for license)
-- written by Roberto Ierusalimschy
--
--- vendored from lpeg-1.1.0
--- documentation available at runtime/lua/vim/_meta/re.lua

-- imported functions and modules
local tonumber, type, error = tonumber, type, error
local setmetatable = setmetatable
local m = require"lpeg"

-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' runs on 'm', creating patterns
-- on 'mm'
local mm = m

-- patterns' metatable
local mt = getmetatable(mm.P(0))


local version = _VERSION

-- No more global accesses after this point
_ENV = nil     -- does no harm in Lua 5.1


local any = m.P(1)

... (246 lines truncated)
</file>

<file path="runtime/lua/vim/secure.lua">
local M = {}

local fileformat_newlines = {
  unix = '\n',
  dos = '\r\n',
  mac = '\r',
}

--- Reads trust database from $XDG_STATE_HOME/nvim/trust.
---
---@return table<string, string> Contents of trust database, if it exists. Empty table otherwise.
local function read_trust()
  local trust = {} ---@type table<string, string>
  local f = io.open(vim.fn.stdpath('state') .. '/trust', 'r')
  if f then
    local contents = f:read('*a')
    if contents then
      for line in vim.gsplit(contents, '\n') do
        local hash, file = string.match(line, '^(%S+) (.+)$')
        if hash and file then
          trust[file] = hash
        end
      end
    end
    f:close()
  end
  return trust
end

--- If {fullpath} is a file, read the contents of {fullpath} (or the contents of {bufnr}
... (220 lines truncated)
</file>

<file path="runtime/lua/vim/snippet.lua">
--- @brief
--- Snippet expansion and navigation.
---
--- Internal autocmds live in the `nvim.snippet` augroup. To disable them (e.g.
--- to manage sessions yourself), clear it:
---
--- ```lua
--- vim.api.nvim_clear_autocmds({ group = 'nvim.snippet', buffer = 0 })
--- ```
---
--- Heads-up: |vim.snippet.jump()| re-registers them on every jump.

local G = vim.lsp._snippet_grammar
local snippet_group = vim.api.nvim_create_augroup('nvim.snippet')
local snippet_ns = vim.api.nvim_create_namespace('nvim.snippet')
local hl_group = 'SnippetTabstop'
local hl_group_active = 'SnippetTabstopActive'

--- Returns the 0-based cursor position.
---
--- @return integer, integer
local function cursor_pos()
  local cursor = vim.api.nvim_win_get_cursor(0)
  return cursor[1] - 1, cursor[2]
end

--- Resolves variables (like `$name` or `${name:default}`) as follows:
--- - When a variable is unknown (i.e.: its name is not recognized in any of the cases below), return `nil`.
--- - When a variable isn't set, return its default (if any) or an empty string.
---
... (685 lines truncated)
</file>

<file path="runtime/lua/vim/text.lua">
-- Text processing functions.

local M = {}

--- Optional parameters:
--- @class vim.text.diff.Opts
--- @inlinedoc
---
--- Invoked for each hunk in the diff. Return a negative number
--- to cancel the callback for any remaining hunks.
--- Arguments:
---   - `start_a` (`integer`): Start line of hunk in {a}.
---   - `count_a` (`integer`): Hunk size in {a}.
---   - `start_b` (`integer`): Start line of hunk in {b}.
---   - `count_b` (`integer`): Hunk size in {b}.
--- @field on_hunk? fun(start_a: integer, count_a: integer, start_b: integer, count_b: integer): integer?
---
--- Form of the returned diff:
---   - `unified`: String in unified format.
---   - `indices`: Array of hunk locations.
--- Note: This option is ignored if `on_hunk` is used.
--- (default: `'unified'`)
--- @field result_type? 'unified'|'indices'
---
--- Run linematch on the resulting hunks from xdiff. When integer, only hunks
--- upto this size in lines are run through linematch.
--- Requires `result_type = indices`, ignored otherwise.
--- @field linematch? boolean|integer
---
--- Diff algorithm to use. Values:
... (189 lines truncated)
</file>

<file path="runtime/lua/vim/treesitter.lua">
local api = vim.api

---@type table<integer,vim.treesitter.LanguageTree>
local parsers = setmetatable({}, { __mode = 'v' })

local M = vim._defer_require('vim.treesitter', {
  _fold = ..., --- @module 'vim.treesitter._fold'
  _query_linter = ..., --- @module 'vim.treesitter._query_linter'
  _range = ..., --- @module 'vim.treesitter._range'
  dev = ..., --- @module 'vim.treesitter.dev'
  highlighter = ..., --- @module 'vim.treesitter.highlighter'
  language = ..., --- @module 'vim.treesitter.language'
  languagetree = ..., --- @module 'vim.treesitter.languagetree'
  query = ..., --- @module 'vim.treesitter.query'
  _select = ..., --- @module 'vim.treesitter._select'
})

local LanguageTree = M.languagetree

--- @nodoc
M.language_version = vim._ts_get_language_version()

--- @nodoc
M.minimum_language_version = vim._ts_get_minimum_language_version()

--- Creates a new parser
---
--- It is not recommended to use this; use |get_parser()| instead.
---
---@param buf integer Buffer the parser will be tied to (0 for current buffer)
... (570 lines truncated)
</file>

<file path="runtime/lua/vim/tty.lua">
local M = {}

--- Send `payload` to the host terminal and listen for `TermResponse`, calling `on_response` for
--- each response. Cleans up after `opts.timeout` ms if the callback never returns `true`.
---
--- The autocommand is removed when:
--- - `on_response()` returns `true`
--- - the timeout fires (and `opts.on_timeout` is called, if given)
--- - the caller explicitly deletes the returned autocmd id
---
---@param payload string Sequence to send via nvim_ui_send(). Use empty string ('') to just register
---                      a listener (no sending).
---@param opts? { timeout?: integer, on_timeout?: fun(), group?: integer|string, chan?: integer } #
---       - `timeout` (default: 1000) ms to wait before giving up, or 0 for never (caller must remove the autocmd).
---       - `on_timeout` optional fn called when the timeout fires.
---       - `group`: augroup for the TermResponse autocmd.
---       - `chan`: only handle responses from this channel.
---@param on_response fun(resp:string):boolean? Called for each TermResponse. Return `true` to stop listening.
---@return integer # autocmd id of the TermResponse handler.
function M.request(payload, opts, on_response)
  vim.validate('payload', payload, 'string')
  vim.validate('opts', opts, 'table', true)
  vim.validate('on_response', on_response, 'function')

  opts = opts or {}
  local timeout = opts.timeout or 1000
  local timer ---@type uv.uv_timer_t?
  if timeout > 0 then
    timer = assert(vim.uv.new_timer())
  end
... (180 lines truncated)
</file>

<file path="runtime/lua/vim/ui.lua">
local M = vim._defer_require('vim.ui', {
  img = ..., --- @module 'vim.ui.img'
})

---@class vim.ui.select.Opts
---@inlinedoc
---
--- Prompt text.
--- (default: `"Select one of:"`)
---@field prompt? string
---
--- Decides how to format items when displayed in the picker.
--- (default: `tostring`)
---@field format_item? fun(item: any):string
---
--- Decides how to preview an item by preparing a scratch buffer with the item details (including text, highlighting, etc.).
--- When the picker decides to "preview" an item, it should call this function.
--- Must return a table with these keys:
---     - {buf}? (`integer`) Buffer containing the previewed item details, or nil if no preview should be shown.
---     - {pos}? (`[integer, integer]`) Specifies the (1,0)-indexed cursor position in the preview buffer. If nil, should be treated as `{ 1, 0 }`.
---     - {pos_end}? (`[integer, integer]`) Specifies the (1,0)-indexed (end-exclusive) end position of the preview range. If nil, no range is intended for a preview.
---@field preview_item? fun(item: any):{buf?:integer, pos?:[integer,integer], pos_end?:[integer,integer]}
---
--- Arbitrary hint string indicating the item shape. The picker may wish to use this to infer the
--- structure or semantics of `items`, or the context in which select() was called.
---@field kind? string

--- Prompts the user to pick from a list of items, allowing arbitrary (potentially asynchronous)
--- work until `on_choice`. This is the standard "picker" interface, used by |z=|, |:tselect|, etc.
---
... (376 lines truncated)
</file>

<file path="runtime/lua/vim/uri.lua">
-- TODO: This is implemented only for files currently.
-- https://tools.ietf.org/html/rfc3986
-- https://tools.ietf.org/html/rfc2732
-- https://tools.ietf.org/html/rfc2396

local M = {}
local sbyte = string.byte
local schar = string.char
local tohex = require('bit').tohex
local URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9.+-]*):.*'
local WINDOWS_URI_SCHEME_PATTERN = '^([a-zA-Z]+[a-zA-Z0-9.+-]*):[a-zA-Z]:.*'
local PATTERNS = {
  -- RFC 2396
  -- https://tools.ietf.org/html/rfc2396#section-2.2
  rfc2396 = "^A-Za-z0-9%-_.!~*'()",
  -- RFC 2732
  -- https://tools.ietf.org/html/rfc2732
  rfc2732 = "^A-Za-z0-9%-_.!~*'()%[%]",
  -- RFC 3986
  -- https://tools.ietf.org/html/rfc3986#section-2.2
  rfc3986 = "^A-Za-z0-9%-._~!$&'()*+,;=:@/",
}

---Converts hex to char
---@param hex string
---@return string
local function hex_to_char(hex)
  return schar(vim._assert_integer(hex, 16))
end

... (101 lines truncated)
</file>

<file path="runtime/lua/vim/version.lua">
--- @brief
--- The `vim.version` module provides functions for comparing versions and ranges
--- conforming to the https://semver.org spec. Plugins, and plugin managers, can use this to check
--- available tools and dependencies on the current system.
---
--- Example:
---
--- ```lua
--- local v = vim.version.parse(vim.system({'tmux', '-V'}):wait().stdout, {strict=false})
--- if vim.version.gt(v, {3, 2, 0}) then
---   -- ...
--- end
--- ```
---
--- [vim.version()] returns the version of the current Nvim process.
---
--- VERSION RANGE SPEC [version-range]()
---
--- A version "range spec" defines a semantic version range which can be tested against a version,
--- using |vim.version.range()|.
---
--- Supported range specs are shown in the following table.
--- Note: suffixed versions (1.2.3-rc1) are not matched.
---
--- ```
--- 1.2.3             is 1.2.3
--- =1.2.3            is 1.2.3
--- >1.2.3            greater than 1.2.3
--- <1.2.3            before 1.2.3
--- >=1.2.3           at least 1.2.3
... (493 lines truncated)
</file>

<file path="runtime/lua/coxpcall.lua">
-------------------------------------------------------------------------------
-- (Not needed for LuaJIT or Lua 5.2+)
--
-- Coroutine safe xpcall and pcall versions
--
-- https://keplerproject.github.io/coxpcall/
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or xpcall.
--
-- Authors: Roberto Ierusalimschy and Andre Carregal
-- Contributors: Thomas Harning Jr., Ignacio Burgueño, Fabio Mascarenhas
--
-- Copyright 2005 - Kepler Project
--
-- $Id: coxpcall.lua,v 1.13 2008/05/19 19:20:02 mascarenhas Exp $
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-- Checks if (x)pcall function is coroutine safe
-------------------------------------------------------------------------------
--- @param func function
local function isCoroutineSafe(func)
    local co = coroutine.create(function()
        return func(coroutine.yield, function() end)
    end)

    coroutine.resume(co)
    return coroutine.resume(co)
... (113 lines truncated)
</file>

<file path="runtime/lua/editorconfig.lua">
--- @brief
--- EditorConfig is like 'modeline' for an entire (recursive) directory. When a file is opened,
--- after running |ftplugin|s and |FileType| autocommands, the EditorConfig feature searches all
--- parent directories of that file for `.editorconfig` files, parses them, and applies their
--- properties. For more information see https://editorconfig.org/.
---
--- Example `.editorconfig` file:
--- ```ini
--- root = true
---
--- [*]
--- charset = utf-8
--- end_of_line = lf
--- indent_size = 4
--- indent_style = space
--- max_line_length = 42
--- trim_trailing_whitespace = true
---
--- [*.{diff,md}]
--- trim_trailing_whitespace = false
--- ```

--- @brief [g:editorconfig]() [b:editorconfig]()
---
--- EditorConfig is enabled by default. To disable it, add to your config:
--- ```lua
--- vim.g.editorconfig = false
--- ```
---
--- (Vimscript: `let g:editorconfig = v:false`). It can also be disabled
... (327 lines truncated)
</file>

<file path="runtime/lua/man.lua">
local api, fn = vim.api, vim.fn

local M = {}

--- Run a system command and timeout after 10 seconds.
--- @param cmd string[]
--- @param silent boolean?
--- @param env? table<string,string|number>
--- @return string
local function system(cmd, silent, env)
  if fn.executable(assert(cmd[1])) == 0 then
    error(string.format('executable not found: "%s"', cmd[1]), 0)
  end

  local r = vim.system(cmd, { env = env, timeout = 10000 }):wait()

  if not silent then
    if r.code ~= 0 then
      local cmd_str = table.concat(cmd, ' ')
      error(string.format("command error '%s': %s", cmd_str, r.stderr))
    end
    assert(r.stdout ~= '')
  end

  return assert(r.stdout)
end

--- @enum Man.Attribute
local Attrs = {
  None = 0,
... (869 lines truncated)
</file>

<file path="runtime/delmenu.vim">
" This Vim script deletes all the menus, so that they can be redefined.
" Warning: This also deletes all menus defined by the user!
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2023 Aug 10
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

aunmenu *
tlunmenu *

if exists('#SetupLazyloadMenus')
  au! SetupLazyloadMenus
  augroup! SetupLazyloadMenus
endif

if exists('#buffer_list')
  au! buffer_list
  augroup! buffer_list
endif

if exists('#LoadBufferMenu')
  au! LoadBufferMenu
  augroup! LoadBufferMenu
endif

if exists('#spellmenu')
  au! spellmenu
  augroup! spellmenu
endif

... (29 lines truncated)
</file>

<file path="runtime/embedded_data.zig">
pub const inspect_module = @embedFile("./lua/vim/inspect.lua");
pub const shared_module = @embedFile("./lua/vim/_core/shared.lua");
pub const iter_module = @embedFile("./lua/vim/iter.lua");
</file>

<file path="runtime/example_init.lua">
-- Set <space> as the leader key
-- See `:h mapleader`
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
vim.g.mapleader = ' '

-- OPTIONS
--
-- See `:h vim.o`
-- NOTE: You can change these options as you wish!
-- For more options, you can see `:h option-list`
-- To see documentation for an option, you can use `:h 'optionname'`, for example `:h 'number'`
-- (Note the single quotes)

vim.o.number = true -- Show line numbers in a column.

-- Show line numbers relative to where the cursor is.
-- Affects the 'number' option above, see `:h number_relativenumber`.
vim.o.relativenumber = true

-- Sync clipboard between OS and Neovim. Schedule the setting after `UIEnter` because it can
-- increase startup-time. Remove this option if you want your OS clipboard to remain independent.
-- See `:h 'clipboard'`
vim.api.nvim_create_autocmd('UIEnter', {
  callback = function()
    vim.o.clipboard = 'unnamedplus'
  end,
})

-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
vim.o.ignorecase = true
... (78 lines truncated)
</file>

<file path="runtime/filetype.lua">
if vim.g.did_load_filetypes then
  return
end
vim.g.did_load_filetypes = 1

vim.api.nvim_create_augroup('filetypedetect', { clear = false })

vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile', 'StdinReadPost' }, {
  group = 'filetypedetect',
  callback = function(ev)
    if not vim.api.nvim_buf_is_valid(ev.buf) then
      return
    end
    local ft, on_detect, is_fallback = vim.filetype.match({
      -- The unexpanded file name is needed here. #27914
      -- However, bufname() can't be used, as it doesn't work with :doautocmd. #31306
      filename = ev.file,
      buf = ev.buf,
    })
    if ft then
      -- on_detect is called before setting the filetype so that it can set any buffer local
      -- variables that may be used the filetype's ftplugin
      if on_detect then
        on_detect(ev.buf)
      end

      vim._with({ buf = ev.buf }, function()
        vim.api.nvim_cmd({
          cmd = 'setf',
          args = (is_fallback and { 'FALLBACK', ft } or { ft }),
... (28 lines truncated)
</file>

<file path="runtime/ftoff.vim">
" Vim support file to switch off detection of file types
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last change:	2023 Aug 10
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("did_load_filetypes")
  unlet did_load_filetypes
endif

" Remove all autocommands in the filetypedetect group
silent! au! filetypedetect *
</file>

<file path="runtime/ftplugin.vim">
" Vim support file to switch on loading plugins for file types
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last change:	2023 Aug 10
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("did_load_ftplugin")
  finish
endif
let did_load_ftplugin = 1

augroup filetypeplugin
  au FileType * call s:LoadFTPlugin()

  func! s:LoadFTPlugin()
    if exists("b:undo_ftplugin")
      exe b:undo_ftplugin
      unlet! b:undo_ftplugin b:did_ftplugin
    endif

    let s = expand("<amatch>")
    if s != ""
      if &cpo =~# "S" && exists("b:did_ftplugin")
	" In compatible mode options are reset to the global values, need to
	" set the local values also when a plugin was already used.
	unlet b:did_ftplugin
      endif

      " When there is a dot it is used to separate filetype names.  Thus for
      " "aaa.bbb" load "aaa" and then "bbb".
... (10 lines truncated)
</file>

<file path="runtime/ftplugof.vim">
" Vim support file to switch off loading plugins for file types
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2023 Aug 10
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("did_load_ftplugin")
  unlet did_load_ftplugin
endif

" Remove all autocommands in the filetypeplugin group, if any exist.
if exists("#filetypeplugin")
  silent! au! filetypeplugin *
endif
</file>

<file path="runtime/gen_runtime.zig">
const std = @import("std");
const LazyPath = std.Build.LazyPath;

pub const SourceItem = struct { name: []u8, api_export: bool };

pub fn nvim_gen_runtime(
    b: *std.Build,
    nlua0: *std.Build.Step.Compile,
    funcs_data: LazyPath,
) !*std.Build.Step.WriteFile {
    const gen_runtime = b.addWriteFiles();

    {
        const gen_step = b.addRunArtifact(nlua0);
        gen_step.addFileArg(b.path("src/gen/gen_vimvim.lua"));
        const file = gen_step.addOutputFileArg("generated.vim");
        _ = gen_runtime.addCopyFile(file, "syntax/vim/generated.vim");
        gen_step.addFileArg(funcs_data);
        gen_step.addFileArg(b.path("src/nvim/options.lua"));
        gen_step.addFileArg(b.path("src/nvim/auevents.lua"));
        gen_step.addFileArg(b.path("src/nvim/ex_cmds.lua"));
        gen_step.addFileArg(b.path("src/nvim/vvars.lua"));
    }

    {
        const install_doc_files = b.addInstallDirectory(.{ .source_dir = b.path("runtime/doc"), .install_dir = .prefix, .install_subdir = "runtime/doc" });
        gen_runtime.step.dependOn(&install_doc_files.step);

        const gen_step = b.addRunArtifact(nlua0);
        gen_step.addFileArg(b.path("src/gen/gen_helptags.lua"));
... (10 lines truncated)
</file>

<file path="runtime/indent.vim">
" Vim support file to switch on loading indent files for file types
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2023 Aug 10
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("did_indent_on")
  finish
endif
let did_indent_on = 1

augroup filetypeindent
  au FileType * call s:LoadIndent()
  func! s:LoadIndent()
    if exists("b:undo_indent")
      exe b:undo_indent
      unlet! b:undo_indent b:did_indent
    endif
    let s = expand("<amatch>")
    if s != ""
      if exists("b:did_indent")
	unlet b:did_indent
      endif

      " When there is a dot it is used to separate filetype names.  Thus for
      " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim".
      for name in split(s, '\.')
        " XXX: "[.]" in the pattern makes it a wildcard on Windows
        exe $'runtime! indent/{name}[.]{{vim,lua}}'
      endfor
... (4 lines truncated)
</file>

<file path="runtime/indoff.vim">
" Vim support file to switch off loading indent files for file types
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2023 Aug 10
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

if exists("did_indent_on")
  unlet did_indent_on
endif

" Remove all autocommands in the filetypeindent group
silent! au! filetypeindent *
</file>

<file path="runtime/makemenu.vim">
" Script to define the syntax menu in synmenu.vim
" Maintainer:		The Vim Project <https://github.com/vim/vim>
" Last Change:		2026 Sep 24
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

" This is used by "make menu" in the src directory.
edit <sfile>:p:h/synmenu.vim

/The Start Of The Syntax Menu/+1,/The End Of The Syntax Menu/-1d
let s:lnum = line(".") - 1
call append(s:lnum, "")
let s:lnum = s:lnum + 1

" Use the SynMenu command and function to define all menu entries
command! -nargs=* SynMenu call <SID>Syn(<q-args>)

let s:cur_menu_name = ""
let s:cur_menu_nr = 0
let s:cur_menu_item = 0
let s:cur_menu_char = ""

fun! <SID>Syn(arg)
  " Arg: Menu.SubMenu:syntax
  " isolate menu name: until the first dot
  let i = match(a:arg, '\.')
  let menu_name = strpart(a:arg, 0, i)
  let r = strpart(a:arg, i + 1, 999)
  " isolate submenu name: until the colon
  let i = match(r, ":")
  let submenu_name = strpart(r, 0, i)
... (831 lines truncated)
</file>

<file path="runtime/menu.vim">
" Vim support file to define the default menus
" You can also use this as a start for your own set of menus.
"
" Maintainer:	The Vim Project <https://github.com/vim/vim>
" Last Change:	2026 Jan 19
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

" Note that ":an" (short for ":anoremenu") is often used to make a menu work
" in all modes and avoid side effects from mappings defined by the user.

" Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
" <CR> would not be recognized.  See ":help 'cpoptions'".
let s:cpo_save = &cpo
set cpo&vim

" Avoid installing the menus twice
if !exists("did_install_default_menus")
let did_install_default_menus = 1


if exists("v:lang") || &langmenu != ""
  " Try to find a menu translation file for the current language.
  if &langmenu != ""
    if &langmenu =~ "none"
      let s:lang = ""
    else
      let s:lang = &langmenu
    endif
  else
    let s:lang = v:lang
... (1208 lines truncated)
</file>

<file path="runtime/org.neovim.nvim.appdata.xml">
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
  <id>org.neovim.nvim</id>
  <translation type="gettext">nvim</translation>
  <project_license>Apache-2.0</project_license>
  <metadata_license>CC0-1.0</metadata_license>
  <name>Neovim</name>
  <summary>Vim-fork focused on extensibility and usability</summary>
  <description>
    <p>Neovim is a refactor of the Vim text editor designed to encourage new features, advanced UIs, and powerful extensions.</p>
  </description>
  <developer id="org.neovim">
    <name>Neovim contributors</name>
  </developer>
  <screenshots>
    <screenshot type="default">
      <caption>Live :substitute feature</caption>
      <image>https://neovim.io/images/nvim-screenshot-1.png</image>
    </screenshot>
  </screenshots>
  <releases>
    <release date="2026-03-29" version="0.12.0"/>
    <release date="2026-03-28" version="0.11.7"/>
    <release date="2026-01-26" version="0.11.6"/>
    <release date="2025-11-02" version="0.11.5"/>
    <release date="2025-08-31" version="0.11.4"/>
    <release date="2025-07-12" version="0.11.3"/>
    <release date="2025-05-30" version="0.11.2"/>
    <release date="2025-04-26" version="0.11.1"/>
    <release date="2025-03-26" version="0.11.0"/>
... (48 lines truncated)
</file>

<file path="runtime/org.neovim.nvim.desktop">
[Desktop Entry]
Name=Neovim
GenericName=Text Editor
GenericName[ckb]=دەستکاریکەری دەق
GenericName[de]=Texteditor
GenericName[fr]=Éditeur de texte
GenericName[pl]=Edytor tekstu
GenericName[ru]=Текстовый редактор
GenericName[sr]=Едитор текст
GenericName[tr]=Metin Düzenleyici
Comment=Edit text files
Comment[af]=Redigeer tekslêers
Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ
Comment[ar]=حرّر ملفات نصية
Comment[az]=Mətn fayllarını redaktə edin
Comment[be]=Рэдагаваньне тэкставых файлаў
Comment[bg]=Редактиране на текстови файлове
Comment[bn]=টেক্স্ট ফাইল এডিট করুন
Comment[bs]=Izmijeni tekstualne datoteke
Comment[ca]=Edita fitxers de text
Comment[ckb]=دەستکاریی فایلی دەق بکە
Comment[cs]=Úprava textových souborů
Comment[cy]=Golygu ffeiliau testun
Comment[da]=Redigér tekstfiler
Comment[de]=Textdateien bearbeiten
Comment[el]=Επεξεργασία αρχείων κειμένου
Comment[en_CA]=Edit text files
Comment[en_GB]=Edit text files
Comment[es]=Edita archivos de texto
Comment[et]=Redigeeri tekstifaile
... (64 lines truncated)
</file>

<file path="runtime/synmenu.vim">
" Vim support file to define the syntax selection menu
" This file is normally sourced from menu.vim.
"
" Maintainer:		The Vim Project <https://github.com/vim/vim>
" Last Change:		2026 Aug 06
" Former Maintainer:	Bram Moolenaar <Bram@vim.org>

" Define the SetSyn function, used for the Syntax menu entries.
" Set 'filetype' and also 'syntax' if it is manually selected.
fun! SetSyn(name)
  if a:name == "fvwm1"
    let use_fvwm_1 = 1
    let use_fvwm_2 = 0
    let name = "fvwm"
  elseif a:name == "fvwm2"
    let use_fvwm_2 = 1
    let use_fvwm_1 = 0
    let name = "fvwm"
  elseif a:name =~ '^modula2:\w\+$'
    let [name, dialect] = split(a:name, ":")
    call modula2#SetDialect(dialect)
  else
    let name = a:name
  endif
  if a:name == "whitespace"
    " do not replace the filetype but add whitespace on top
    let name = &ft .. ".whitespace"
  endif
  if !exists("s:syntax_menu_synonly")
    exe "set ft=" . name
... (823 lines truncated)
</file>

<file path="runtime/windows_icon.rc">
// NOTE: this resource file *must* be in the same folder as the icon.
// Otherwise, absolute paths would need to be used.
// see https://learn.microsoft.com/en-us/windows/win32/menurc/icon-resource
NEOVIM_ICON ICON "neovim.ico"
</file>

<file path="src/man/Makefile">
MAN = nvim.1

lint:
	mandoc -Tlint -Wall $(MAN)
	igor $(MAN)
</file>

<file path="src/man/nvim.1">
.Dd December 17, 2017
.Dt NVIM 1
.Os
.Sh NAME
.Nm nvim
.Nd edit text
.Sh SYNOPSIS
.Nm
.Op Ar options
.Op Ar file ...
.Nm
.Op Ar options
.Fl
.Nm
.Op Ar options
.Fl t Ar tag
.Nm
.Op Ar options
.Fl q Op Ar errorfile
.Sh DESCRIPTION
.Nm
is a text editor based on Vim.
Start
.Nm
followed by any number of options and/or files:
.Pp
.Dl nvim [options] [file ...]
.Pp
Commands in
.Nm
... (398 lines truncated)
</file>

<file path="src/nvim/api/private/converter.c">
} EncodedData;
⋮----
static Object typval_cbuf_to_obj(EncodedData *edata, const char *data, size_t len)
⋮----
static inline void typval_encode_list_start(EncodedData *const edata, const size_t len)
⋮----
static inline void typval_encode_between_list_items(EncodedData *const edata)
⋮----
static inline void typval_encode_list_end(EncodedData *const edata)
⋮----
static inline void typval_encode_dict_start(EncodedData *const edata, const size_t len)
⋮----
static inline void typval_encode_after_key(EncodedData *const edata)
⋮----
static inline void typval_encode_between_dict_items(EncodedData *const edata)
⋮----
static inline void typval_encode_dict_end(EncodedData *const edata)
⋮----
Object vim_to_object(typval_T *obj, Arena *arena, bool reuse_strdata)
⋮----
void object_to_vim(Object obj, typval_T *tv, Error *err)
⋮----
void object_to_vim_take_luaref(Object *obj, typval_T *tv, bool take_luaref, Error *err)
</file>

<file path="src/nvim/api/private/converter.h">

</file>

<file path="src/nvim/api/private/defs.h">
} ErrorType;
⋮----
} MessageType;
⋮----
static inline bool is_internal_call(const uint64_t channel_id)
⋮----
} Error;
⋮----
typedef bool Boolean;
typedef int64_t Integer;
typedef double Float;
⋮----
} String;
⋮----
typedef struct object Object;
typedef kvec_t(Object) Array;
⋮----
typedef struct key_value_pair KeyValuePair;
typedef kvec_t(KeyValuePair) Dict;
⋮----
typedef kvec_t(String) StringArray;
⋮----
} ObjectType;
⋮----
} UnpackType;
⋮----
struct object {
⋮----
struct key_value_pair {
⋮----
... (7 lines truncated)
</file>

<file path="src/nvim/api/private/dispatch.c">
MsgpackRpcRequestHandler msgpack_rpc_get_handler_for(const char *name, size_t name_len,
</file>

<file path="src/nvim/api/private/dispatch.h">
struct MsgpackRpcRequestHandler {
</file>

<file path="src/nvim/api/private/helpers.c">
void try_enter(TryState *const tstate)
⋮----
void try_leave(const TryState *const tstate, Error *const err)
⋮----
Object dict_get_value(dict_T *dict, String key, Arena *arena, Error *err)
⋮----
dictitem_T *dict_check_writable(dict_T *dict, String key, bool del, Error *err)
⋮----
Object dict_set_var(dict_T *dict, String key, Object value, bool del, bool retval, Arena *arena,
⋮----
buf_T *find_buffer_by_handle(Buffer buffer, Error *err)
⋮----
win_T *find_window_by_handle(Window window, Error *err)
⋮----
tabpage_T *find_tab_by_handle(Tabpage tabpage, Error *err)
⋮----
String cchar_to_string(char c)
⋮----
String cstr_to_string(const char *str)
⋮----
char *string_to_cstr(String str)
⋮----
String cbuf_to_string(const char *buf, size_t size)
⋮----
String cstrn_to_string(const char *str, size_t maxsize)
⋮----
String cstrn_as_string(char *str, size_t maxsize)
⋮----
String cstr_as_string(const char *str) FUNC_ATTR_PURE
⋮----
... (101 lines truncated)
</file>

<file path="src/nvim/api/private/helpers.h">
typedef kvec_withinit_t(Object, 16) ArrayBuilder;
⋮----
/// Create a new String instance, putting data in allocated memory
///
/// @param[in]  s  String to work with. Must be a string literal.
⋮----
// Helpers used by the generated msgpack-rpc api wrappers
⋮----
EXTERN PMap(int) buffer_handles INIT( = MAP_INIT);
EXTERN PMap(int) window_handles INIT( = MAP_INIT);
EXTERN PMap(int) tabpage_handles INIT( = MAP_INIT);
⋮----
/// Structure used for saving state for :try
⋮----
/// Used when caller is supposed to be operating when other Vimscript code is being
/// processed and that “other Vimscript code” must not be affected.
⋮----
} TryState;
⋮----
// TODO(bfredl): prepare error-handling at "top level" (nv_event).
</file>

<file path="src/nvim/api/private/validate.c">
void api_err_invalid(Error *err, const char *name, const char *val_s, int64_t val_n, bool quote_val)
⋮----
void api_err_exp(Error *err, const char *name, const char *expected, const char *actual)
⋮----
void api_err_required(Error *err, const char *name)
⋮----
void api_err_conflict(Error *err, const char *name, const char *name2)
⋮----
bool check_string_array(Array arr, char *name, bool disallow_nl, Error *err)
</file>

<file path="src/nvim/api/private/validate.h">

</file>

<file path="src/nvim/api/autocmd.c">
ArrayOf(DictAs(get_autocmds__ret)) nvim_get_autocmds(Dict(get_autocmds) *opts, Arena *arena,
⋮----
Integer nvim_create_autocmd(uint64_t channel_id, Object event, Dict(create_autocmd) *opts,
⋮----
void nvim_del_autocmd(Integer id, Error *err)
⋮----
void nvim_clear_autocmds(Dict(clear_autocmds) *opts, Arena *arena, Error *err)
⋮----
// If we didn't pass any events, that means clear all events.
⋮----
/// Create or get an autocommand group |autocmd-groups|.
///
/// To get an existing group id, do:
⋮----
/// ```lua
/// local id = vim.api.nvim_create_augroup('my.lsp.config', {
///   clear = false
/// })
/// ```
⋮----
/// @param name Group name
/// @param opts Optional parameters:
///        - clear (`boolean?`, default: true) Clear existing commands in the group |autocmd-groups|.
/// @return Group id.
/// @see |autocmd-groups|
Integer nvim_create_augroup(uint64_t channel_id, String name, Dict(create_augroup) *opts,
⋮----
void nvim_del_augroup_by_id(Integer id, Error *err)
⋮----
void nvim_del_augroup_by_name(String name, Error *err)
... (11 lines truncated)
</file>

<file path="src/nvim/api/autocmd.h">

</file>

<file path="src/nvim/api/buffer.c">
buf_T *api_buf_ensure_loaded(Buffer buf, Error *err)
⋮----
Integer nvim_buf_line_count(Buffer buf, Error *err)
⋮----
Boolean nvim_buf_attach(uint64_t channel_id, Buffer buf, Boolean send_buffer,
⋮----
Boolean nvim_buf_detach(uint64_t channel_id, Buffer buf, Error *err)
⋮----
ArrayOf(String) nvim_buf_get_lines(uint64_t channel_id,
⋮----
void nvim_buf_set_lines(uint64_t channel_id, Buffer buf, Integer start, Integer end,
⋮----
void nvim_buf_set_text(uint64_t channel_id, Buffer buf, Integer start_row, Integer start_col,
⋮----
// check range is ordered and everything!
// start_row, end_row within buffer len (except add text past the end?)
⋮----
ArrayOf(String) nvim_buf_get_text(uint64_t channel_id, Buffer buf,
⋮----
Integer nvim_buf_get_offset(Buffer buf, Integer index, Error *err)
⋮----
Object nvim_buf_get_var(Buffer buf, String name, Arena *arena, Error *err)
⋮----
Integer nvim_buf_get_changedtick(Buffer buf, Error *err)
⋮----
ArrayOf(DictAs(get_keymap)) nvim_buf_get_keymap(Buffer buf, String mode, Arena *arena,
⋮----
void nvim_buf_set_keymap(uint64_t channel_id, Buffer buf, String mode, String lhs, String rhs,
⋮----
void nvim_buf_del_keymap(uint64_t channel_id, Buffer buf, String mode, String lhs,
... (59 lines truncated)
</file>

<file path="src/nvim/api/buffer.h">

</file>

<file path="src/nvim/api/command.c">
static Array parse_map_cmd(const char *arg_str, Arena *arena)
⋮----
Dict(cmd) nvim_parse_cmd(String str, Dict(empty) *opts, Arena *arena, Error *err)
⋮----
// For built-in commands, if count is not explicitly provided and the default value is 0,
// do not include the count field in the result, so the command uses its built-in default
// behavior.
⋮----
String nvim_cmd(uint64_t channel_id, Dict(cmd) *cmd, Dict(cmd_opts) *opts, Arena *arena, Error *err)
⋮----
// Default is 1, not cursor.
⋮----
// parse_cmdline() only sees one string, set the argument boundaries.
⋮----
p += ea.arglens[i] + 1;  // Account for space
⋮----
// CMOD_ERRSILENT must imply CMOD_SILENT, otherwise apply_cmdmod() and undo_cmdmod() won't
// work properly.
⋮----
static bool string_iswhite(String str)
⋮----
static void build_cmdline_str(char **cmdlinep, exarg_T *eap, ArrayOf(String) args)
⋮----
void nvim_create_user_command(uint64_t channel_id,
⋮----
void nvim_del_user_command(String name, Error *err)
⋮----
void nvim_buf_create_user_command(uint64_t channel_id, Buffer buf, String name, Object cmd,
⋮----
void nvim_buf_del_user_command(Buffer buf, String name, Error *err)
... (7 lines truncated)
</file>

<file path="src/nvim/api/command.h">

</file>

<file path="src/nvim/api/deprecated.c">
String nvim_exec(uint64_t channel_id, String src, Boolean output, Error *err)
⋮----
String nvim_command_output(uint64_t channel_id, String command, Error *err)
⋮----
Object nvim_execute_lua(String code, Array args, Arena *arena, Error *err)
⋮----
Integer nvim_buf_get_number(Buffer buffer, Error *err)
⋮----
static uint32_t src2ns(Integer *src_id)
⋮----
void nvim_buf_clear_highlight(Buffer buffer, Integer ns_id, Integer line_start, Integer line_end,
⋮----
Integer nvim_buf_add_highlight(Buffer buffer, Integer ns_id, String hl_group, Integer line,
⋮----
Integer nvim_buf_set_virtual_text(Buffer buffer, Integer src_id, Integer line, Array chunks,
⋮----
Dict nvim_get_hl_by_id(Integer hl_id, Boolean rgb, Arena *arena, Error *err)
⋮----
Dict nvim_get_hl_by_name(String name, Boolean rgb, Arena *arena, Error *err)
⋮----
void buffer_insert(Buffer buffer, Integer lnum, ArrayOf(String) lines, Arena *arena, Error *err)
⋮----
String buffer_get_line(Buffer buffer, Integer index, Arena *arena, Error *err)
⋮----
void buffer_set_line(Buffer buffer, Integer index, String line, Arena *arena, Error *err)
⋮----
void buffer_del_line(Buffer buffer, Integer index, Arena *arena, Error *err)
⋮----
ArrayOf(String) buffer_get_line_slice(Buffer buffer,
⋮----
... (58 lines truncated)
</file>

<file path="src/nvim/api/deprecated.h">

</file>

<file path="src/nvim/api/dispatch_deprecated.lua">
local deprecated_aliases = {
  nvim_buf_add_highlight = 'buffer_add_highlight',
  nvim_buf_clear_highlight = 'buffer_clear_highlight',
  nvim_buf_get_lines = 'buffer_get_lines',
  nvim_buf_get_mark = 'buffer_get_mark',
  nvim_buf_get_name = 'buffer_get_name',
  nvim_buf_get_number = 'buffer_get_number',
  nvim_buf_get_option = 'buffer_get_option',
  nvim_buf_get_var = 'buffer_get_var',
  nvim_buf_is_valid = 'buffer_is_valid',
  nvim_buf_line_count = 'buffer_line_count',
  nvim_buf_set_lines = 'buffer_set_lines',
  nvim_buf_set_name = 'buffer_set_name',
  nvim_buf_set_option = 'buffer_set_option',
  nvim_call_function = 'vim_call_function',
  nvim_command = 'vim_command',
  nvim_command_output = 'vim_command_output',
  nvim_del_current_line = 'vim_del_current_line',
  nvim_err_write = 'vim_err_write',
  nvim_err_writeln = 'vim_report_error',
  nvim_eval = 'vim_eval',
  nvim_feedkeys = 'vim_feedkeys',
  nvim_get_api_info = 'vim_get_api_info',
  nvim_get_color_by_name = 'vim_name_to_color',
  nvim_get_color_map = 'vim_get_color_map',
  nvim_get_current_buf = 'vim_get_current_buffer',
  nvim_get_current_line = 'vim_get_current_line',
  nvim_get_current_tabpage = 'vim_get_current_tabpage',
  nvim_get_current_win = 'vim_get_current_window',
  nvim_get_option = 'vim_get_option',
... (40 lines truncated)
</file>

<file path="src/nvim/api/events.c">
void nvim_error_event(uint64_t channel_id, Integer type, String msg)
⋮----
/// Emitted by the TUI client to signal when a host-terminal event occurred.
///
/// Supports these events:
⋮----
///   - "termresponse": The host-terminal sent an OSC, DCS, APC, or recognized CSI (DA1, kitty
⋮----
void nvim_ui_term_event(uint64_t channel_id, String event, Object value, Error *err)
</file>

<file path="src/nvim/api/events.h">

</file>

<file path="src/nvim/api/extmark.c">
void api_extmark_free_all_mem(void)
⋮----
Integer nvim_create_namespace(String name)
⋮----
DictOf(Integer) nvim_get_namespaces(Arena *arena)
⋮----
const char *describe_ns(NS ns_id, const char *unknown)
⋮----
bool ns_initialized(uint32_t ns)
⋮----
Array virt_text_to_array(VirtText vt, bool hl_name, Arena *arena)
⋮----
static Array extmark_to_array(MTPair extmark, bool id, bool add_dict, bool hl_name, Arena *arena)
⋮----
nvim_buf_get_extmark_by_id(Buffer buf, Integer ns_id, Integer id, Dict(get_extmark) * opts,
⋮----
FUNC_API_SINCE(7)
⋮----
ArrayOf(DictAs(get_extmark_item)) nvim_buf_get_extmarks(Buffer buf, Integer ns_id, Object start,
⋮----
Integer nvim_buf_set_extmark(Buffer buf, Integer ns_id, Integer line, Integer col,
⋮----
// Only error out if they try to set end_right_gravity without
// setting end_col or end_row
⋮----
Boolean nvim_buf_del_extmark(Buffer buf, Integer ns_id, Integer id, Error *err)
⋮----
void nvim_buf_clear_namespace(Buffer buf, Integer ns_id, Integer line_start, Integer line_end,
⋮----
void nvim_set_decoration_provider(Integer ns_id, Dict(set_decoration_provider) *opts, Error *err)
... (20 lines truncated)
</file>

<file path="src/nvim/api/extmark.h">
EXTERN Map(String, int) namespace_ids INIT( = MAP_INIT);
⋮----
EXTERN Set(uint32_t) namespace_localscope INIT( = SET_INIT);
EXTERN handle_T next_namespace_id INIT( = 1);
⋮----
static inline bool ns_in_win(uint32_t ns_id, win_T *wp)
</file>

<file path="src/nvim/api/keysets_defs.h">
} Dict(set_decoration_provider);
⋮----
} Dict(set_extmark);
</file>

<file path="src/nvim/api/options.c">
static int validate_option_value_args(Dict(option) *opts, char *name, bool allow_tab,
⋮----
/// Create a dummy buffer and run the FileType autocmd on it.
static buf_T *do_ft_buf(const char *filetype, CtxSwitch *aco, Error *err)
⋮----
// Allocate a buffer without putting it in the buffer list.
⋮----
static void wipe_ft_buf(buf_T *buf)
⋮----
Object nvim_get_option_value(String name, Dict(option) *opts, Error *err)
⋮----
Object nvim_set_option_value(uint64_t channel_id, String name, Object value, Dict(option) *opts,
⋮----
Dict nvim_get_all_options_info(Arena *arena, Error *err)
⋮----
DictAs(get_option_info) nvim_get_option_info2(String name, Dict(option) *opts, Arena *arena,
</file>

<file path="src/nvim/api/options.h">

</file>

<file path="src/nvim/api/tabpage.c">
ArrayOf(Window) nvim_tabpage_list_wins(Tabpage tabpage, Arena *arena, Error *err)
⋮----
Object nvim_tabpage_get_var(Tabpage tabpage, String name, Arena *arena, Error *err)
⋮----
void nvim_tabpage_set_var(Tabpage tabpage, String name, Object value, Error *err)
⋮----
void nvim_tabpage_del_var(Tabpage tabpage, String name, Error *err)
⋮----
Window nvim_tabpage_get_win(Tabpage tabpage, Error *err)
⋮----
void nvim_tabpage_set_win(Tabpage tabpage, Window win, Error *err)
⋮----
Integer nvim_tabpage_get_number(Tabpage tabpage, Error *err)
⋮----
Boolean nvim_tabpage_is_valid(Tabpage tabpage)
⋮----
Tabpage nvim_open_tabpage(Buffer buf, Boolean enter, Dict(tabpage_config) *config, Error *err)
</file>

<file path="src/nvim/api/tabpage.h">

</file>

<file path="src/nvim/api/ui_events.in.h">
void mode_info_set(Boolean enabled, Array cursor_styles)
⋮----
void update_menu(void)
⋮----
void busy_start(void)
⋮----
void busy_stop(void)
⋮----
void mouse_on(void)
⋮----
void mouse_off(void)
⋮----
void mode_change(String mode, Integer mode_idx)
⋮----
void bell(void)
⋮----
void visual_bell(void)
⋮----
void flush(void)
⋮----
void connect(String server_addr)
⋮----
void restart(String listen_addr)
⋮----
void suspend(void)
⋮----
void set_title(String title)
⋮----
void set_icon(String icon)
⋮----
... (114 lines truncated)
</file>

<file path="src/nvim/api/ui.c">
static RemoteUI *get_ui_or_err(uint64_t chan_id, Error *err)
⋮----
static char *mpack_array_dyn16(char **buf)
⋮----
static void mpack_str_small(char **buf, const char *str, size_t len)
⋮----
static void remote_ui_destroy(RemoteUI *ui)
⋮----
void remote_ui_disconnect(uint64_t channel_id, Error *err, bool send_error_exit)
⋮----
void ui_detach_channel(uint64_t chan, Error *err)
⋮----
size_t ui_detach_others(uint64_t keep_chan)
⋮----
void remote_ui_free_all_mem(void)
⋮----
void remote_ui_wait_for_attach(void)
⋮----
void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, Dict options, Error *err)
⋮----
void ui_attach(uint64_t channel_id, Integer width, Integer height, Boolean enable_rgb, Error *err)
⋮----
void nvim_ui_set_focus(uint64_t channel_id, Boolean gained, Error *error)
⋮----
void nvim_ui_detach(uint64_t channel_id, Error *err)
⋮----
void remote_ui_connect(uint64_t channel_id, char *server_addr, Error *err)
⋮----
void remote_ui_stop(RemoteUI *ui)
⋮----
... (58 lines truncated)
</file>

<file path="src/nvim/api/ui.h">

</file>

<file path="src/nvim/api/vim.c">
Integer nvim_get_hl_id_by_name(String name, Error *err)
⋮----
DictAs(get_hl_info) nvim_get_hl(Integer ns_id, Dict(get_highlight) *opts, Arena *arena, Error *err)
⋮----
void nvim_set_hl(uint64_t channel_id, Integer ns_id, String name, Dict(highlight) *val, Error *err)
⋮----
Integer nvim_get_hl_ns(Dict(get_ns) *opts, Error *err)
⋮----
void nvim_set_hl_ns(Integer ns_id, Error *err)
⋮----
void nvim_set_hl_ns_fast(Integer ns_id, Error *err)
⋮----
void nvim_feedkeys(String keys, String mode, Boolean escape_ks)
⋮----
Integer nvim_input(uint64_t channel_id, String keys)
⋮----
void nvim_input_mouse(String button, String action, String modifier, Integer grid, Integer row,
⋮----
String nvim_replace_termcodes(String str, Boolean from_part, Boolean do_lt, Boolean special)
⋮----
Object nvim_exec_lua(String code, Array args, Arena *arena, Error *err)
⋮----
Object nvim__exec_lua_fast(String code, Array args, Arena *arena, Error *err)
⋮----
Integer nvim_strwidth(String text, Error *err)
⋮----
ArrayOf(String) nvim_list_runtime_paths(Arena *arena, Error *err)
⋮----
Array nvim__runtime_inspect(Arena *arena)
⋮----
... (168 lines truncated)
</file>

<file path="src/nvim/api/vim.h">

</file>

<file path="src/nvim/api/vimscript.c">
Dict nvim_exec2(uint64_t channel_id, String src, Dict(exec_opts) *opts, Error *err)
⋮----
String exec_impl(uint64_t channel_id, String src, Dict(exec_opts) *opts, Error *err)
⋮----
void nvim_command(String cmd, Error *err)
⋮----
Object nvim_eval(String expr, Arena *arena, Error *err)
⋮----
static Object _call_function(uint64_t channel_id, String fn, Array args, dict_T *self, Arena *arena,
⋮----
Object nvim_call_function(uint64_t channel_id, String fn, Array args, Arena *arena, Error *err)
⋮----
Object nvim_call_dict_function(uint64_t channel_id, Object dict, String fn, Array args,
⋮----
} ExprASTConvStackItem;
⋮----
typedef kvec_withinit_t(ExprASTConvStackItem, 16) ExprASTConvStack;
⋮----
Dict nvim_parse_expression(String expr, String flags, Boolean hl, Arena *arena, Error *err)
</file>

<file path="src/nvim/api/vimscript.h">

</file>

<file path="src/nvim/api/win_config.c">
Window nvim_open_win(Buffer buf, Boolean enter, Dict(win_config) *config, Error *err)
⋮----
static WinSplit win_split_dir(win_T *win)
⋮----
static int win_split_flags(WinSplit split, bool toplevel)
⋮----
static bool win_can_move_tp(win_T *wp, tabpage_T *tp, Error *err)
⋮----
static win_T *win_find_altwin(win_T *win, tabpage_T *tp)
⋮----
static bool win_config_split(win_T *win, const Dict(win_config) *config, WinConfig *fconfig,
⋮----
static bool win_config_float_tp(win_T *win, const Dict(win_config) *config,
⋮----
void nvim_win_set_config(Window win, Dict(win_config) *config, Error *err)
⋮----
static void config_put_bordertext(Dict(win_config) *config, WinConfig *fconfig,
⋮----
Dict(win_config) nvim_win_get_config(Window win, Arena *arena, Error *err)
⋮----
static bool parse_float_anchor(String anchor, FloatAnchor *out)
⋮----
static bool parse_float_relative(String relative, FloatRelative *out)
⋮----
static bool parse_config_split(String split, WinSplit *out)
⋮----
static bool parse_float_bufpos(Array bufpos, lpos_T *out)
⋮----
void parse_bordertext(Object bordertext, BorderTextType bordertext_type, WinConfig *fconfig,
⋮----
... (10 lines truncated)
</file>

<file path="src/nvim/api/win_config.h">

</file>

<file path="src/nvim/api/window.c">
Buffer nvim_win_get_buf(Window win, Error *err)
⋮----
void nvim_win_set_buf(Window win, Buffer buf, Error *err)
⋮----
FUNC_API_SINCE(1)
⋮----
void nvim_win_set_cursor(Window win, ArrayOf(Integer, 2) pos, Error *err)
⋮----
Integer nvim_win_get_height(Window win, Error *err)
⋮----
Integer nvim_win_get_width(Window win, Error *err)
⋮----
Object nvim_win_get_var(Window win, String name, Arena *arena, Error *err)
⋮----
void nvim_win_set_var(Window win, String name, Object value, Error *err)
⋮----
void nvim_win_del_var(Window win, String name, Error *err)
⋮----
Tabpage nvim_win_get_tabpage(Window win, Error *err)
⋮----
Integer nvim_win_get_number(Window win, Error *err)
⋮----
Boolean nvim_win_is_valid(Window win)
⋮----
void nvim_win_hide(Window win, Error *err)
⋮----
void nvim_win_close(Window win, Boolean force, Error *err)
⋮----
Object nvim_win_call(Window win, LuaRef fn, lua_State *lstate, Error *err)
⋮----
... (12 lines truncated)
</file>

<file path="src/nvim/api/window.h">

</file>

<file path="src/nvim/eval/buffer.c">
} cob_T;
⋮----
buf_T *find_buffer(typval_T *avar)
⋮----
static void find_win_for_curbuf(void)
⋮----
static void change_other_buffer_prepare(cob_T *cob, buf_T *buf)
⋮----
static void change_other_buffer_restore(cob_T *cob)
⋮----
static void set_buffer_lines(buf_T *buf, linenr_T lnum_arg, bool append, typval_T *lines,
⋮----
void f_append(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void buf_set_append_line(typval_T *argvars, typval_T *rettv, bool append)
⋮----
void f_appendbufline(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void prompt_trim_scrollback(buf_T *buf)
⋮----
void prompt_invoke_callback(void)
⋮----
// clear undo history on submit
⋮----
/// @return  true when the interrupt callback was invoked.
bool invoke_prompt_interrupt(void)
⋮----
got_int = false;  // don't skip executing commands
⋮----
/// "prompt_appendbuf({buffer}, string/list)" function
... (85 lines truncated)
</file>

<file path="src/nvim/eval/buffer.h">

</file>

<file path="src/nvim/eval/decode.c">
} ContainerStackItem;
⋮----
} ValuesStackItem;
⋮----
typedef kvec_t(ValuesStackItem) ValuesStack;
⋮----
typedef kvec_t(ContainerStackItem) ContainerStack;
⋮----
static inline void create_special_dict(typval_T *const rettv, const MessagePackType type,
⋮----
static inline int json_decoder_pop(ValuesStackItem obj, ValuesStack *const stack,
⋮----
list_T *decode_create_map_special_dict(typval_T *const ret_tv, const ptrdiff_t len)
⋮----
typval_T decode_string(const char *const s, const size_t len, bool force_blob,
⋮----
static inline int parse_json_string(const char *const buf, const size_t buf_len,
⋮----
/// Parse JSON number: both floating-point and integer
///
/// Number format: `-?\d+(?:.\d+)?(?:[eE][+-]?\d+)?`.
⋮----
/// @param[in]  buf  Buffer being converted.
/// @param[in]  buf_len  Length of the buffer.
/// @param[in,out]  pp  Pointer to the start of the number. Must point to
///                     a digit or a minus sign. Is advanced to the last
///                     character of the number. Also see json_decoder_pop(), it
///                     may set pp to another location and alter
///                     next_map_special, didcomma and didcolon.
/// @param[out]  stack  Object stack.
... (24 lines truncated)
</file>

<file path="src/nvim/eval/decode.h">

</file>

<file path="src/nvim/eval/deprecated.c">
void f_rpcstart(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_rpcstop(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_last_buffer_nr(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_termopen(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
</file>

<file path="src/nvim/eval/deprecated.h">

</file>

<file path="src/nvim/eval/encode.c">
int encode_blob_write(void *const data, const char *const buf, const size_t len)
⋮----
void encode_list_write(void *const data, const char *const buf, const size_t len)
⋮----
static int conv_error(const char *const msg, const MPConvStack *const mpstack,
⋮----
bool encode_vim_list_to_buf(const list_T *const list, size_t *const ret_len, char **const ret_buf)
⋮----
int encode_read_from_list(ListReaderState *const state, char *const buf, const size_t nbuf,
⋮----
/// Convert given string to JSON string
///
/// @param[out]  gap  Garray where result will be saved.
/// @param[in]  buf  Converted string.
/// @param[in]  len  Converted string length.
⋮----
/// @return OK in case of success, FAIL otherwise.
static inline int convert_to_json_string(garray_T *const gap, const char *const buf,
⋮----
// Encode character as \uNNNN if
// 1. It is an ASCII control character (0x0 .. 0x1F; 0x7F not
//    utf_printable and thus not checked specially).
// 2. Code point is not printable according to utf_printable().
// This is done to make resulting values displayable on screen also not from
// Neovim.
⋮----
bool encode_check_json_key(const typval_T *const tv)
⋮----
char *encode_tv2string(typval_T *tv, size_t *len)
⋮----
... (6 lines truncated)
</file>

<file path="src/nvim/eval/encode.h">
int encode_vim_to_msgpack(PackerBuffer *packer, typval_T *tv, const char *objname);
⋮----
int encode_vim_to_echo(garray_T *gap, typval_T *tv, const char *objname);
⋮----
} ListReaderState;
</file>

<file path="src/nvim/eval/executor.c">
static int tv_op_blob(typval_T *tv1, const typval_T *tv2, const char *op)
⋮----
static int tv_op_list(typval_T *tv1, const typval_T *tv2, const char *op)
⋮----
static int tv_op_number(typval_T *tv1, const typval_T *tv2, const char *op)
⋮----
static int tv_op_string(typval_T *tv1, const typval_T *tv2, const char *op)
⋮----
static int tv_op_nr_or_string(typval_T *tv1, const typval_T *tv2, const char *op)
⋮----
static int tv_op_float(typval_T *tv1, const typval_T *tv2, const char *op)
⋮----
int eexe_mod_op(typval_T *const tv1, const typval_T *const tv2, const char *const op)
</file>

<file path="src/nvim/eval/executor.h">

</file>

<file path="src/nvim/eval/fs.c">
int modify_fname(char *src, bool tilde_file, size_t *usedlen, char **fnamep, char **bufp,
⋮----
xfree(*bufp);          // free any allocated file name
⋮----
// When "/." or "/.." is used: force expansion to get rid of it.
⋮----
// FullName_save() is slow, don't use it when not needed.
⋮----
// Append a path separator to a directory.
⋮----
// Make room for one or two extra characters.
⋮----
// ":." - path relative to the current directory
// ":~" - path relative to the home directory
// ":8" - shortname path - postponed till after
⋮----
void f_chdir(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_delete(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
// delete a file
⋮----
void f_executable(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_exepath(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_filecopy(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_filereadable(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
... (108 lines truncated)
</file>

<file path="src/nvim/eval/fs.h">

</file>

<file path="src/nvim/eval/funcs.c">
} SomeMatchType;
⋮----
char *get_function_name(expand_T *xp, int idx)
⋮----
char *get_expr_name(expand_T *xp, int idx)
⋮----
const EvalFuncDef *find_internal_func(const char *const name)
⋮----
const char *find_internal_func_lua(const char *const name)
⋮----
int check_internal_func(const EvalFuncDef *const fdef, const int argcount)
⋮----
int call_internal_func(const char *const fname, const int argcount, typval_T *const argvars,
⋮----
int call_internal_method(const char *const fname, const int argcount, typval_T *const argvars,
⋮----
static bool non_zero_arg(typval_T *argvars)
⋮----
static void float_op_wrapper(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void api_wrapper(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void lua_wrapper(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void f_abs(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void f_and(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static void f_api_info(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
... (494 lines truncated)
</file>

<file path="src/nvim/eval/funcs.h">
} EvalFuncDef;
</file>

<file path="src/nvim/eval/gc.c">

</file>

<file path="src/nvim/eval/gc.h">

</file>

<file path="src/nvim/eval/list.c">
} filtermap_T;
⋮----
static int filter_map_one(typval_T *tv, typval_T *expr, const filtermap_T filtermap,
⋮----
static void filter_map_dict(dict_T *d, filtermap_T filtermap, const char *func_name,
⋮----
static void filter_map_blob(blob_T *blob_arg, filtermap_T filtermap, typval_T *expr,
⋮----
static void filter_map_string(const char *str, filtermap_T filtermap, typval_T *expr,
⋮----
static void filter_map_list(list_T *l, filtermap_T filtermap, const char *func_name,
⋮----
static void filter_map(typval_T *argvars, typval_T *rettv, filtermap_T filtermap)
⋮----
void f_filter(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_map(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_mapnew(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_foreach(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_add(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static varnumber_T count_string(const char *haystack, const char *needle, bool ic)
⋮----
static varnumber_T count_list(list_T *l, typval_T *needle, int64_t idx, bool ic)
⋮----
static varnumber_T count_dict(dict_T *d, typval_T *needle, bool ic)
⋮----
... (18 lines truncated)
</file>

<file path="src/nvim/eval/list.h">

</file>

<file path="src/nvim/eval/typval_defs.h">
typedef int64_t varnumber_T;
typedef uint64_t uvarnumber_T;
⋮----
enum ListLenSpecials {
⋮----
typedef struct listvar_S list_T;
typedef struct dictvar_S dict_T;
typedef struct partial_S partial_T;
typedef struct blobvar_S blob_T;
⋮----
typedef struct ufunc_S ufunc_T;
⋮----
} CallbackType;
⋮----
} Callback;
⋮----
} DictWatcher;
⋮----
} BoolVarValue;
⋮----
} SpecialVarValue;
⋮----
} VarLockStatus;
⋮----
} VarType;
⋮----
} typval_T;
⋮----
} ScopeType;
⋮----
... (40 lines truncated)
</file>

<file path="src/nvim/eval/typval_encode.c.h">
static inline int TYPVAL_ENCODE_CHECK_SELF_REFERENCE(
⋮----
static int TYPVAL_ENCODE_CONVERT_ONE_VALUE(
⋮----
// When using uf_name prepend "g:" for a global function.
⋮----
TYPVAL_ENCODE_SCOPE int TYPVAL_ENCODE_ENCODE(
</file>

<file path="src/nvim/eval/typval_encode.h">
} MPConvStackValType;
⋮----
} MPConvPartialStage;
⋮----
} MPConvStackVal;
⋮----
typedef kvec_withinit_t(MPConvStackVal, 8) MPConvStack;
⋮----
static inline size_t tv_strlen(const typval_T *const tv)
</file>

<file path="src/nvim/eval/typval.c">
} sortinfo_T;
⋮----
} ListSortItem;
⋮----
} DictListType;
⋮----
// Lists:
// List item:
⋮----
/// Allocate a list item
///
/// @warning Allocated item is not initialized, do not forget to initialize it
///          and specifically set lv_lock.
⋮----
/// @return [allocated] new list item.
static listitem_T *tv_list_item_alloc(void)
⋮----
/// Remove a list item from a List and free it
⋮----
/// Also clears the value.
⋮----
/// @param[out]  l  List to remove item from.
/// @param[in,out]  item  Item to remove.
⋮----
/// @return Pointer to the list item just after removed one, NULL if removed
///         item was the last one.
listitem_T *tv_list_item_remove(list_T *const l, listitem_T *const item)
⋮----
// List watchers:
⋮----
... (469 lines truncated)
</file>

<file path="src/nvim/eval/typval.h">
static inline void tv_list_ref(list_T *const l)
⋮----
static inline void tv_list_set_ret(typval_T *const tv, list_T *const l)
⋮----
static inline VarLockStatus tv_list_locked(const list_T *const l)
⋮----
static inline void tv_list_set_lock(list_T *const l, const VarLockStatus lock)
⋮----
static inline void tv_list_set_copyid(list_T *const l, const int copyid)
⋮----
static inline int tv_list_len(const list_T *const l)
⋮----
static inline int tv_list_copyid(const list_T *const l)
⋮----
static inline list_T *tv_list_latest_copy(const list_T *const l)
⋮----
static inline int tv_list_uidx(const list_T *const l, int n)
⋮----
static inline bool tv_list_has_watchers(const list_T *const l)
⋮----
static inline listitem_T *tv_list_first(const list_T *const l)
⋮----
static inline listitem_T *tv_list_last(const list_T *const l)
⋮----
static inline void tv_dict_set_ret(typval_T *const tv, dict_T *const d)
⋮----
static inline long tv_dict_len(const dict_T *const d)
⋮----
static inline bool tv_dict_is_watched(const dict_T *const d)
⋮----
... (19 lines truncated)
</file>

<file path="src/nvim/eval/userfunc.c">
} defer_T;
⋮----
void func_init(void)
⋮----
hashtab_T *func_tbl_get(void)
⋮----
static char *one_function_arg(char *arg, garray_T *newargs, bool skip)
⋮----
static int get_function_args(char **argp, char endchar, garray_T *newargs, int *varargs,
⋮----
static void register_closure(ufunc_T *fp)
⋮----
static String get_lambda_name(void)
⋮----
static ufunc_T *alloc_ufunc(const char *name, size_t namelen)
⋮----
int get_lambda_tv(char **arg, typval_T *rettv, evalarg_T *evalarg)
⋮----
char *deref_func_name(const char *name, int *lenp, partial_T **const partialp, bool no_autoload,
⋮----
if (pt == NULL) {  // just in case
⋮----
/// Give an error message with a function name.  Handle <SNR> things.
///
/// @param errmsg must be passed without translation (use N_() instead of _()).
/// @param name function name
void emsg_funcname(const char *errmsg, const char *name)
⋮----
/// Get function arguments at "*arg" and advance it.
⋮----
... (224 lines truncated)
</file>

<file path="src/nvim/eval/userfunc.h">
} funcdict_T;
⋮----
typedef struct funccal_entry funccal_entry_T;
struct funccal_entry {
⋮----
} FnameTransError;
⋮----
} funcexe_T;
</file>

<file path="src/nvim/eval/vars.c">
static struct vimvar {
⋮----
void evalvars_init(void)
⋮----
void evalvars_clear(void)
⋮----
int garbage_collect_globvars(int copyID)
⋮----
bool garbage_collect_vimvars(int copyID)
⋮----
bool garbage_collect_scriptvars(int copyID)
⋮----
void set_internal_string_var(const char *name, char *value)
⋮----
int eval_charconvert(const char *const enc_from, const char *const enc_to,
⋮----
void eval_diff(const char *const origfile, const char *const newfile, const char *const outfile)
⋮----
void eval_patch(const char *const origfile, const char *const difffile, const char *const outfile)
⋮----
list_T *eval_spell_expr(char *badword, char *expr)
⋮----
int get_spellword(list_T *const list, const char **ret_word)
⋮----
void prepare_vimvar(int idx, typval_T *save_tv)
⋮----
void restore_vimvar(int idx, typval_T *save_tv)
⋮----
static void list_vim_vars(int *first)
⋮----
... (259 lines truncated)
</file>

<file path="src/nvim/eval/vars.h">

</file>

<file path="src/nvim/eval/window.c">
bool win_has_winnr(win_T *wp, tabpage_T *tp)
⋮----
win_T *win_find_nr(int nr, tabpage_T *tp)
⋮----
static int win_getid(typval_T *argvars)
⋮----
static void win_id2tabwin(typval_T *const argvars, typval_T *const rettv)
⋮----
win_T *win_id2wp(int id)
⋮----
win_T *win_id2wp_tp(int id, tabpage_T **tpp)
⋮----
static int win_id2win(typval_T *argvars)
⋮----
void win_findbuf(typval_T *argvars, list_T *list)
⋮----
win_T *find_win_by_nr(typval_T *vp, tabpage_T *tp)
⋮----
win_T *find_win_by_nr_or_id(typval_T *vp)
⋮----
win_T *find_tabwin(typval_T *wvp, typval_T *tvp)
⋮----
static void get_framelayout(const frame_T *fr, list_T *l, bool outer)
⋮----
static int get_winnr(tabpage_T *tp, typval_T *argvar)
⋮----
static dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr)
⋮----
static dict_T *get_tabpage_info(tabpage_T *tp, int tp_idx)
⋮----
... (58 lines truncated)
</file>

<file path="src/nvim/eval/window.h">

</file>

<file path="src/nvim/event/defs.h">
} Event;
⋮----
typedef struct multiqueue MultiQueue;
⋮----
typedef struct signal_watcher SignalWatcher;
⋮----
struct signal_watcher {
⋮----
typedef struct time_watcher TimeWatcher;
⋮----
struct time_watcher {
⋮----
typedef struct wbuffer WBuffer;
⋮----
struct wbuffer {
⋮----
typedef struct stream Stream;
typedef struct rstream RStream;
⋮----
struct stream {
⋮----
struct rstream {
⋮----
typedef struct socket_watcher SocketWatcher;
⋮----
struct socket_watcher {
⋮----
} ProcType;
⋮----
typedef struct proc Proc;
... (3 lines truncated)
</file>

<file path="src/nvim/event/libuv_proc.c">
static void libuv_proc_stdio(LibuvProc *uvproc, int idx, uv_pipe_t *parent_pipe,
⋮----
int libuv_proc_spawn(LibuvProc *uvproc)
⋮----
void libuv_proc_close(LibuvProc *uvproc)
⋮----
static void close_cb(uv_handle_t *handle)
⋮----
static void exit_cb(uv_process_t *handle, int64_t status, int term_signal)
⋮----
LibuvProc libuv_proc_init(Loop *loop, void *data)
</file>

<file path="src/nvim/event/libuv_proc.h">
} LibuvProc;
</file>

<file path="src/nvim/event/loop.c">
void loop_init(Loop *loop, void *data)
⋮----
static bool loop_uv_run(Loop *loop, int64_t ms)
⋮----
bool loop_poll_events(Loop *loop, int64_t ms)
⋮----
void loop_schedule_fast(Loop *loop, Event event)
⋮----
void loop_schedule_deferred(Loop *loop, Event event)
⋮----
static void loop_deferred_event(void **argv)
⋮----
void loop_on_put(MultiQueue *queue, void *data)
⋮----
static void loop_walk_cb(uv_handle_t *handle, void *arg)
⋮----
bool loop_close(Loop *loop, bool wait)
⋮----
void loop_purge(Loop *loop)
⋮----
size_t loop_size(Loop *loop)
⋮----
static void async_cb(uv_async_t *handle)
⋮----
static void timer_cb(uv_timer_t *handle)
⋮----
static void timer_close_cb(uv_handle_t *handle)
</file>

<file path="src/nvim/event/loop.h">
struct loop {
</file>

<file path="src/nvim/event/multiqueue.c">
typedef struct multiqueue_item MultiQueueItem;
struct multiqueue_item {
⋮----
struct multiqueue {
⋮----
} MulticastEvent;
⋮----
MultiQueue *multiqueue_new(PutCallback on_put, void *data)
⋮----
MultiQueue *multiqueue_new_child(MultiQueue *parent)
⋮----
static MultiQueue *_multiqueue_new(MultiQueue *parent, PutCallback on_put, void *data)
⋮----
void multiqueue_free(MultiQueue *self)
⋮----
Event multiqueue_get(MultiQueue *self)
⋮----
void multiqueue_put_event(MultiQueue *self, Event event)
⋮----
void multiqueue_move_events(MultiQueue *dest, MultiQueue *src)
⋮----
void multiqueue_process_events(MultiQueue *self)
⋮----
void multiqueue_purge_events(MultiQueue *self)
⋮----
bool multiqueue_empty(MultiQueue *self)
⋮----
void multiqueue_replace_parent(MultiQueue *self, MultiQueue *new_parent)
⋮----
size_t multiqueue_size(MultiQueue *self)
... (13 lines truncated)
</file>

<file path="src/nvim/event/multiqueue.h">

</file>

<file path="src/nvim/event/proc.c">
void __gcov_flush(void);
⋮----
int proc_spawn(Proc *proc, bool in, bool out, bool err)
⋮----
void proc_teardown(Loop *loop) FUNC_ATTR_NONNULL_ALL
⋮----
void proc_close_streams(Proc *proc) FUNC_ATTR_NONNULL_ALL
⋮----
int proc_wait(Proc *proc, int ms, MultiQueue *events)
⋮----
void proc_stop(Proc *proc) FUNC_ATTR_NONNULL_ALL
⋮----
void proc_free(Proc *proc) FUNC_ATTR_NONNULL_ALL
⋮----
static void children_kill_cb(uv_timer_t *handle)
⋮----
static void proc_close_event(void **argv)
⋮----
static void decref(Proc *proc)
⋮----
static void proc_close(Proc *proc)
⋮----
static void flush_stream(Proc *proc, RStream *stream)
⋮----
static void proc_close_handles(void **argv)
⋮----
static void exit_delay_cb(uv_timer_t *handle)
⋮----
static void exit_event(void **argv)
⋮----
... (6 lines truncated)
</file>

<file path="src/nvim/event/proc.h">
static inline Proc proc_init(Loop *loop, ProcType type, void *data)
⋮----
static inline const char *proc_get_exepath(Proc *proc)
⋮----
static inline bool proc_is_stopped(Proc *proc)
</file>

<file path="src/nvim/event/rstream.c">
void rstream_init_fd(Loop *loop, RStream *stream, int fd)
⋮----
void rstream_init_stream(RStream *stream, uv_stream_t *uvstream)
⋮----
void rstream_init(RStream *stream)
⋮----
void rstream_start_inner(RStream *stream)
⋮----
void rstream_start(RStream *stream, stream_read_cb cb, void *data)
⋮----
void rstream_stop_inner(RStream *stream)
⋮----
void rstream_stop(RStream *stream)
⋮----
static void alloc_cb(uv_handle_t *handle, size_t suggested, uv_buf_t *buf)
⋮----
static void read_cb(uv_stream_t *uvstream, ssize_t cnt, const uv_buf_t *buf)
⋮----
static size_t rstream_space(RStream *stream)
⋮----
static void fread_idle_cb(uv_idle_t *handle)
⋮----
static void read_event(void **argv)
⋮----
size_t rstream_available(RStream *stream)
⋮----
void rstream_consume(RStream *stream, size_t consumed)
⋮----
static void invoke_read_cb(RStream *stream, bool eof)
⋮----
... (4 lines truncated)
</file>

<file path="src/nvim/event/rstream.h">

</file>

<file path="src/nvim/event/signal.c">
void signal_watcher_init(Loop *loop, SignalWatcher *watcher, void *data)
⋮----
void signal_watcher_start(SignalWatcher *watcher, signal_cb cb, int signum)
⋮----
void signal_watcher_stop(SignalWatcher *watcher)
⋮----
void signal_watcher_close(SignalWatcher *watcher, signal_close_cb cb)
⋮----
static void signal_event(void **argv)
⋮----
static void signal_watcher_cb(uv_signal_t *handle, int signum)
⋮----
static void close_cb(uv_handle_t *handle)
</file>

<file path="src/nvim/event/signal.h">

</file>

<file path="src/nvim/event/socket.c">
char *socket_address_tcp_host_end(const char *address)
⋮----
int socket_watcher_init(Loop *loop, SocketWatcher *watcher, const char *endpoint)
⋮----
static void connect_close_cb(Stream *stream, void *data)
⋮----
static bool socket_alive(Loop *loop, const char *addr)
⋮----
static void early_server_close_cb(uv_handle_t *handle)
⋮----
int socket_watcher_start(SocketWatcher *watcher, int backlog, socket_cb cb)
⋮----
int socket_watcher_accept(SocketWatcher *watcher, RStream *stream)
⋮----
void socket_watcher_close(SocketWatcher *watcher, socket_close_cb cb)
⋮----
static void connection_event(void **argv)
⋮----
static void connection_cb(uv_stream_t *handle, int status)
⋮----
static void close_cb(uv_handle_t *handle)
⋮----
static void connect_cb(uv_connect_t *req, int status)
⋮----
bool socket_connect(Loop *loop, RStream *stream, bool is_tcp, const char *address, int timeout,
</file>

<file path="src/nvim/event/socket.h">

</file>

<file path="src/nvim/event/stream.c">
int stream_set_blocking(int fd, bool blocking)
⋮----
void stream_init(Loop *loop, Stream *stream, int fd, uv_stream_t *uvstream)
⋮----
void stream_may_close(Stream *stream)
⋮----
void stream_close_handle(Stream *stream)
⋮----
static void close_cb(uv_handle_t *handle)
</file>

<file path="src/nvim/event/stream.h">

</file>

<file path="src/nvim/event/time.c">
void time_watcher_init(Loop *loop, TimeWatcher *watcher, void *data)
⋮----
void time_watcher_start(TimeWatcher *watcher, time_cb cb, uint64_t timeout, uint64_t repeat)
⋮----
void time_watcher_stop(TimeWatcher *watcher)
⋮----
void time_watcher_close(TimeWatcher *watcher, time_cb cb)
⋮----
static void time_event(void **argv)
⋮----
static void time_watcher_cb(uv_timer_t *handle)
⋮----
static void close_event(void **argv)
⋮----
static void close_cb(uv_handle_t *handle)
</file>

<file path="src/nvim/event/time.h">

</file>

<file path="src/nvim/event/wstream.c">
} WRequest;
⋮----
void wstream_init_fd(Loop *loop, Stream *stream, int fd, size_t maxmem)
⋮----
void wstream_init_stream(Stream *stream, uv_stream_t *uvstream, size_t maxmem)
⋮----
void wstream_init(Stream *stream, size_t maxmem)
⋮----
void wstream_set_write_cb(Stream *stream, stream_write_cb cb, void *data)
⋮----
int wstream_write(Stream *stream, WBuffer *buffer)
⋮----
WBuffer *wstream_new_buffer(char *data, size_t size, size_t refcount, wbuffer_data_finalizer cb)
⋮----
static void write_cb(uv_write_t *req, int status)
⋮----
void wstream_release_wbuffer(WBuffer *buffer)
</file>

<file path="src/nvim/event/wstream.h">

</file>

<file path="src/nvim/lua/api_wrappers.c">

</file>

<file path="src/nvim/lua/base64.c">
static int nlua_base64_encode(lua_State *L)
⋮----
static int nlua_base64_decode(lua_State *L)
⋮----
int luaopen_base64(lua_State *L)
</file>

<file path="src/nvim/lua/base64.h">

</file>

<file path="src/nvim/lua/converter.c">
} LuaTableProps;
⋮----
static LuaTableProps nlua_traverse_table(lua_State *const lstate)
⋮----
} TVPopStackItem;
⋮----
bool nlua_pop_typval(lua_State *lstate, typval_T *ret_tv)
⋮----
bool nlua_push_typval(lua_State *lstate, typval_T *const tv, int flags)
⋮----
static inline void nlua_push_type_idx(lua_State *lstate)
⋮----
static inline void nlua_push_val_idx(lua_State *lstate)
⋮----
static inline void nlua_push_type(lua_State *lstate, ObjectType type)
⋮----
static inline void nlua_create_typed_table(lua_State *lstate, const size_t narr, const size_t nrec,
⋮----
void nlua_push_String(lua_State *lstate, const String s, int flags)
⋮----
/// Convert given Integer to Lua number
///
/// Leaves converted number on top of the stack.
void nlua_push_Integer(lua_State *lstate, const Integer n, int flags)
⋮----
/// Convert given Float to Lua table
⋮----
/// Leaves converted table on top of the stack.
void nlua_push_Float(lua_State *lstate, const Float f, int flags)
⋮----
... (58 lines truncated)
</file>

<file path="src/nvim/lua/converter.h">

</file>

<file path="src/nvim/lua/executor.c">
} LuaError;
⋮----
} ModuleDef;
⋮----
} ExDocmdCookie;
⋮----
static void nlua_push_cmdmod(lua_State *lstate, const cmdmod_T *cmod)
⋮----
static void nlua_push_eap(lua_State *lstate, exarg_T *eap, const cmdmod_T *cmod)
⋮----
typedef enum luv_err_type {
⋮----
} luv_err_t;
⋮----
lua_State *get_global_lstate(void)
⋮----
static const char *nlua_get_error(lua_State *lstate, size_t *len)
⋮----
void nlua_error(lua_State *const lstate, const char *const msg)
⋮----
static int nlua_no_traceback(lua_State *lstate)
⋮----
int nlua_pcall(lua_State *lstate, int nargs, int nresults)
⋮----
static void nlua_luv_error_event(void **argv)
⋮----
static int nlua_fast_cfpcall(lua_State *lstate, int nargs, int nresult, int flags)
⋮----
static int nlua_luv_thread_cb_cfpcall(lua_State *lstate, int nargs, int nresult, int flags)
⋮----
... (162 lines truncated)
</file>

<file path="src/nvim/lua/executor.h">
void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL;
⋮----
} nlua_ref_state_t;
⋮----
} LuaRetMode;
⋮----
EXTERN bool nlua_disable_preload INIT( = false);
</file>

<file path="src/nvim/lua/secure.c">
char *nlua_read_secure(const char *path)
⋮----
static bool nlua_trust(const char *action, const char *path)
⋮----
void ex_trust(exarg_T *eap)
</file>

<file path="src/nvim/lua/secure.h">

</file>

<file path="src/nvim/lua/spell.c">
int nlua_spell_check(lua_State *lstate)
⋮----
int luaopen_spell(lua_State *L)
</file>

<file path="src/nvim/lua/spell.h">

</file>

<file path="src/nvim/lua/stdlib.c">
static int regex_match(lua_State *lstate, regprog_T **prog, char *str)
⋮----
static int regex_match_str(lua_State *lstate)
⋮----
static int regex_match_line(lua_State *lstate)
⋮----
static regprog_T **regex_check(lua_State *L)
⋮----
static int regex_gc(lua_State *lstate)
⋮----
static int regex_tostring(lua_State *lstate)
⋮----
int nlua_str_utfindex(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
⋮----
static int nlua_str_utf_pos(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
⋮----
static int nlua_str_utf_start(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
⋮----
static int nlua_str_utf_end(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
⋮----
int nlua_str_byteindex(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
⋮----
int nlua_regex(lua_State *lstate)
⋮----
static dict_T *nlua_get_var_scope(lua_State *lstate)
⋮----
int nlua_setvar(lua_State *lstate)
⋮----
int nlua_getvar(lua_State *lstate)
⋮----
... (18 lines truncated)
</file>

<file path="src/nvim/lua/stdlib.h">

</file>

<file path="src/nvim/lua/treesitter.c">
extern const TSLanguage *nvim_ts_get_parser(const char *lang);
⋮----
} TSLuaLoggerOpts;
⋮----
} TSLuaTree;
⋮----
} TSLuaParserCallbackPayload;
⋮----
static int tslua_has_language(lua_State *L)
⋮----
static char *read_file(const char *path, size_t *len)
⋮----
static const char *wasmerr_to_str(TSWasmErrorKind werr)
⋮----
static int tslua_add_language_from_wasm(lua_State *L)
⋮----
static int tslua_add_language_from_object(lua_State *L)
⋮----
static const TSLanguage *load_language_from_object(lua_State *L, const char *path,
⋮----
static const TSLanguage *load_language_from_wasm(lua_State *L, const char *path,
⋮----
static int add_language(lua_State *L, bool is_wasm)
⋮----
static int tslua_remove_lang(lua_State *L)
⋮----
static TSLanguage *lang_check(lua_State *L, int index)
⋮----
static int tslua_inspect_lang(lua_State *L)
⋮----
... (186 lines truncated)
</file>

<file path="src/nvim/lua/treesitter.h">
EXTERN uint64_t tslua_query_parse_count INIT( = 0);
</file>

<file path="src/nvim/lua/xdiff.c">
} NluaXdiffMode;
⋮----
} hunkpriv_t;
⋮----
static void lua_pushhunk(lua_State *lstate, long start_a, long count_a, long start_b, long count_b)
⋮----
static void get_linematch_results(lua_State *lstate, mmfile_t *ma, mmfile_t *mb, int start_a,
⋮----
static int write_string(void *priv, mmbuffer_t *mb, int nbuf)
⋮----
static int hunk_locations_cb(int start_a, int count_a, int start_b, int count_b, void *cb_data)
⋮----
static int call_on_hunk_cb(int start_a, int count_a, int start_b, int count_b, void *cb_data)
⋮----
static mmfile_t get_string_arg(lua_State *lstate, int idx)
⋮----
static NluaXdiffMode process_xdl_diff_opts(lua_State *lstate, xdemitconf_t *cfg, xpparam_t *params,
⋮----
int nlua_xdl_diff(lua_State *lstate)
</file>

<file path="src/nvim/lua/xdiff.h">

</file>

<file path="src/nvim/msgpack_rpc/channel_defs.h">
typedef struct Channel Channel;
typedef struct Unpacker Unpacker;
⋮----
} ClientType;
⋮----
} ChannelCallFrame;
⋮----
} RequestEvent;
⋮----
} RpcState;
</file>

<file path="src/nvim/msgpack_rpc/channel.c">
static void log_request(char *dir, uint64_t channel_id, uint32_t req_id, const char *name)
⋮----
static void log_response(char *dir, uint64_t channel_id, char *kind, uint32_t req_id)
⋮----
static void log_notify(char *dir, uint64_t channel_id, const char *name)
⋮----
void rpc_init(void)
⋮----
void rpc_start(Channel *channel)
⋮----
static Channel *find_rpc_channel(uint64_t id)
⋮----
bool rpc_send_event(uint64_t id, const char *name, Array args)
⋮----
Object rpc_send_call(uint64_t id, const char *method_name, Array args, ArenaMem *result_mem,
⋮----
static size_t receive_msgpack(RStream *stream, const char *rbuf, size_t c, void *data, bool eof)
⋮----
static ChannelCallFrame *find_call_frame(RpcState *rpc, uint32_t request_id)
⋮----
static void parse_msgpack(Channel *channel)
⋮----
static void handle_request(Channel *channel, Unpacker *p, Array args)
⋮----
static void request_event(void **argv)
⋮----
bool rpc_write_raw(uint64_t id, WBuffer *buffer)
⋮----
static bool channel_write(Channel *channel, WBuffer *buffer)
⋮----
... (34 lines truncated)
</file>

<file path="src/nvim/msgpack_rpc/channel.h">

</file>

<file path="src/nvim/msgpack_rpc/packer_defs.h">
typedef struct packer_buffer_t PackerBuffer;
⋮----
struct packer_buffer_t {
</file>

<file path="src/nvim/msgpack_rpc/packer.c">
void mpack_check_buffer(PackerBuffer *packer)
⋮----
static void mpack_w8(char **b, const char *data)
⋮----
void mpack_uint64(char **ptr, uint64_t i)
⋮----
void mpack_integer(char **ptr, Integer i)
⋮----
void mpack_float8(char **ptr, double i)
⋮----
void mpack_str(String str, PackerBuffer *packer)
⋮----
void mpack_bin(String str, PackerBuffer *packer)
⋮----
void mpack_raw(const char *data, size_t len, PackerBuffer *packer)
⋮----
void mpack_ext(char *buf, size_t len, int8_t type, PackerBuffer *packer)
⋮----
void mpack_handle(ObjectType type, handle_T handle, PackerBuffer *packer)
⋮----
void mpack_object(Object *obj, PackerBuffer *packer)
⋮----
void mpack_object_array(Array arr, PackerBuffer *packer)
⋮----
} ContainerStackItem;
⋮----
void mpack_object_inner(Object *current, Object *container, size_t container_idx,
⋮----
PackerBuffer packer_string_buffer(void)
⋮----
... (4 lines truncated)
</file>

<file path="src/nvim/msgpack_rpc/packer.h">
static inline void mpack_w2(char **b, uint32_t v)
⋮----
static inline void mpack_w4(char **b, uint32_t v)
⋮----
static inline void mpack_uint(char **buf, uint32_t val)
⋮----
static inline void mpack_bool(char **buf, bool val)
⋮----
static inline void mpack_array(char **buf, uint32_t len)
⋮----
static inline void mpack_map(char **buf, uint32_t len)
⋮----
static inline size_t mpack_remaining(PackerBuffer *packer)
</file>

<file path="src/nvim/msgpack_rpc/server.c">
bool server_init(const char *listen_addr)
⋮----
static void close_socket_watcher(SocketWatcher **watcher)
⋮----
static void set_vservername(garray_T *srvs)
⋮----
void server_teardown(void)
⋮----
char *server_address_new(const char *name)
⋮----
bool server_owns_pipe_address(const char *address)
⋮----
int server_start(const char *addr)
⋮----
// Check if a watcher for the address already exists.
⋮----
bool server_stop(const char *endpoint, bool keep_vservername)
⋮----
char **server_address_list(size_t *size)
⋮----
static void connection_cb(SocketWatcher *watcher, int result, void *data)
⋮----
static void free_server(SocketWatcher *watcher, void *data)
</file>

<file path="src/nvim/msgpack_rpc/server.h">

</file>

<file path="src/nvim/msgpack_rpc/unpacker.c">
Object unpack(const char *data, size_t size, Arena *arena, Error *err)
⋮----
static void api_parse_enter(mpack_parser_t *parser, mpack_node_t *node)
⋮----
static void api_parse_exit(mpack_parser_t *parser, mpack_node_t *node)
⋮----
void unpacker_init(Unpacker *p)
⋮----
void unpacker_teardown(Unpacker *p)
⋮----
bool unpacker_parse_header(Unpacker *p)
⋮----
// recover later by retrying from scratch
// when more data is available.
⋮----
bool unpacker_advance(Unpacker *p)
⋮----
bool unpacker_parse_redraw(Unpacker *p)
⋮----
String unpack_string(const char **data, size_t *size)
⋮----
ssize_t unpack_array(const char **data, size_t *size)
⋮----
bool unpack_integer(const char **data, size_t *size, Integer *res)
⋮----
bool unpack_uint_or_sint(mpack_token_t tok, Integer *res)
⋮----
static void parse_nop(mpack_parser_t *parser, mpack_node_t *node)
⋮----
int unpack_skip(const char **data, size_t *size)
... (5 lines truncated)
</file>

<file path="src/nvim/msgpack_rpc/unpacker.h">
struct Unpacker {
⋮----
typedef kvec_t(char) AdditionalDataBuilder;
</file>

<file path="src/nvim/os/dl.c">
bool os_libcall(const char *libname, const char *funcname, const char *argv, int argi,
</file>

<file path="src/nvim/os/dl.h">

</file>

<file path="src/nvim/os/env.c">
void env_init(void)
⋮----
static bool env_name_valid(const char *name)
⋮----
char *os_getenv(const char *name)
⋮----
char *os_getenv_buf(const char *const name, char *const buf, const size_t bufsize)
⋮----
char *os_getenv_noalloc(const char *name)
⋮----
bool os_env_exists(const char *name, bool nonempty)
⋮----
int os_setenv(const char *name, const char *value, int overwrite)
⋮----
int os_unsetenv(const char *name)
⋮----
void os_free_fullenv(char **env)
⋮----
char *os_getenvname_at_index(size_t index)
⋮----
int64_t os_get_pid(void)
⋮----
void os_hint_priority(void)
⋮----
void os_get_hostname(char *hostname, size_t size)
⋮----
static char *os_uv_homedir(void);
⋮----
const char *os_homedir(void)
⋮----
... (104 lines truncated)
</file>

<file path="src/nvim/os/fileio_defs.h">
} FileDescriptor;
⋮----
static inline bool file_eof(const FileDescriptor *const fp)
⋮----
static inline int file_fd(const FileDescriptor *const fp)
</file>

<file path="src/nvim/os/fileio.c">
int file_open(FileDescriptor *const ret_fp, const char *const fname, const int flags,
⋮----
int file_open_fd(FileDescriptor *const ret_fp, const int fd, const int flags)
⋮----
int file_open_stdin(FileDescriptor *fp)
⋮----
void file_open_buffer(FileDescriptor *ret_fp, char *data, size_t len)
⋮----
int file_close(FileDescriptor *const fp, const bool do_fsync)
⋮----
int file_fsync(FileDescriptor *const fp)
⋮----
int file_flush(FileDescriptor *fp)
⋮----
ptrdiff_t file_read(FileDescriptor *const fp, char *const ret_buf, const size_t size)
⋮----
char *file_try_read_buffered(FileDescriptor *const fp, const size_t size)
⋮----
ptrdiff_t file_write(FileDescriptor *const fp, const char *const buf, const size_t size)
⋮----
ptrdiff_t file_skip(FileDescriptor *const fp, const size_t size)
</file>

<file path="src/nvim/os/fileio.h">
} FileOpenFlags;
⋮----
static inline size_t file_space(FileDescriptor *fp)
</file>

<file path="src/nvim/os/fs_defs.h">
} PathType;
⋮----
} FileInfo;
⋮----
} FileID;
⋮----
} Directory;
</file>

<file path="src/nvim/os/fs.c">
int os_chdir(const char *path)
⋮----
int os_dirname(char *buf, size_t len)
⋮----
bool os_isrealdir(const char *name)
⋮----
bool os_isdir(const char *name)
⋮----
int os_nodetype(const char *name)
⋮----
// Vim os_win32.c:mch_nodetype does (since 7.4.015):
//    wn = enc_to_utf16(name, NULL);
//    hFile = CreatFile(wn, ...)
// to get a HANDLE. Whereas libuv just calls _get_osfhandle() on the fd we
// give it. But uv_fs_open later calls fs__capture_path which does a similar
// utf8-to-utf16 dance and saves us the hassle.
⋮----
// macOS: os_open(/dev/stderr) would return UV_EACCES.
⋮----
if (fd < 0) {  // open() failed.
⋮----
case UV_TTY:          // FILE_TYPE_CHAR
⋮----
case UV_FILE:         // FILE_TYPE_DISK
⋮----
case UV_NAMED_PIPE:   // not handled explicitly in Vim os_win32.c
case UV_UDP:          // unix only
case UV_TCP:          // unix only
⋮----
return NODE_OTHER;  // Vim os_win32.c default
... (149 lines truncated)
</file>

<file path="src/nvim/os/fs.h">

</file>

<file path="src/nvim/os/input.c">
static void cursorhold_event(void **argv)
⋮----
static void create_cursorhold_event(bool events_enabled)
⋮----
static void reset_cursorhold_wait(int tb_change_cnt)
⋮----
int input_get(uint8_t *buf, int maxlen, int ms, int tb_change_cnt, MultiQueue *events)
⋮----
bool os_char_avail(void)
⋮----
void os_breakcheck(void)
⋮----
void line_breakcheck(void)
⋮----
void fast_breakcheck(void)
⋮----
void veryfast_breakcheck(void)
⋮----
bool os_isatty(int fd)
⋮----
size_t input_available(void)
⋮----
static size_t input_space(void)
⋮----
void input_enqueue_raw(const char *data, size_t size)
⋮----
size_t input_enqueue(uint64_t chan_id, String keys)
⋮----
static uint8_t check_multiclick(int code, int grid, int row, int col, bool *skip_event)
⋮----
... (16 lines truncated)
</file>

<file path="src/nvim/os/input.h">

</file>

<file path="src/nvim/os/lang.c">
static char *get_locale_val(int what)
⋮----
static bool is_valid_mess_lang(const char *lang)
⋮----
char *get_mess_lang(void)
⋮----
static char *get_mess_env(void)
⋮----
void set_lang_var(void)
⋮----
void init_locale(void)
⋮----
// Make sure strtod() uses a decimal point, not a comma.
⋮----
void ex_language(exarg_T *eap)
⋮----
// Check for "messages {name}", "ctype {name}" or "time {name}" argument.
// Allow abbreviation, but require at least 3 characters to avoid
// confusion with a two letter language name "me" or "ct".
⋮----
// Tell gettext() what to translate to.  It apparently doesn't
// use the currently effective locale.
⋮----
static char **find_locales(void)
⋮----
static void init_locales(void)
⋮----
void free_locales(void)
⋮----
char *get_lang_arg(expand_T *xp, int idx)
... (5 lines truncated)
</file>

<file path="src/nvim/os/lang.h">

</file>

<file path="src/nvim/os/mem.c">
uint64_t os_get_total_mem_kib(void)
</file>

<file path="src/nvim/os/nvim.manifest">
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
  <assemblyIdentity
    processorArchitecture="*"
    version="0.9.0.0"
    type="win32"
    name="Neovim"
  />
  <description>Neovim</description>
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!-- Windows 10 and Windows 11 -->
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
      <!-- Windows 8.1 -->
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      <!-- Windows 8 -->
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
    </application>
  </compatibility>
  <asmv3:application>
    <asmv3:windowsSettings>
      <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
      <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
    </asmv3:windowsSettings>
  </asmv3:application>
</assembly>
</file>

<file path="src/nvim/os/nvim.rc">
#include "winuser.h"
1 RT_MANIFEST nvim.manifest
</file>

<file path="src/nvim/os/os_defs.h">
typedef __int64 off_T;
⋮----
typedef off_t off_T;
</file>

<file path="src/nvim/os/os_win_console.c">
void os_enable_ctrl_c(void)
⋮----
int os_open_conin_fd(void)
⋮----
void os_clear_hwnd(void)
⋮----
void os_redirect_stdin_to_conin(void)
⋮----
void os_redirect_stdout_stderr_to_conout(void)
⋮----
void os_reattach_console_stdio(void)
⋮----
void os_swap_to_hidden_console(void)
⋮----
void os_icon_reset(void)
⋮----
void os_icon_init(void)
⋮----
void os_title_save(void)
⋮----
void os_title_reset(void)
⋮----
void os_tty_guess_term(const char **term, int out_fd)
</file>

<file path="src/nvim/os/os_win_console.h">

</file>

<file path="src/nvim/os/os.h">
EXTERN bool nvim_testing INIT( = false);
</file>

<file path="src/nvim/os/proc.c">
static bool os_proc_tree_kill_rec(void *proc, int sig)
⋮----
bool os_proc_tree_kill(int pid, int sig)
⋮----
int os_proc_children(int ppid, int **proc_list, size_t *proc_count)
⋮----
Dict os_proc_info(int pid, Arena *arena)
⋮----
bool os_proc_running(int pid)
</file>

<file path="src/nvim/os/proc.h">

</file>

<file path="src/nvim/os/pty_conpty_win.c">
bool os_has_conpty_working(void)
⋮----
TriState os_dyn_conpty_init(void)
⋮----
conpty_t *os_conpty_init(char **in_name, char **out_name, uint16_t width, uint16_t height)
⋮----
bool os_conpty_spawn(conpty_t *conpty_object, HANDLE *proc_handle, wchar_t *name, wchar_t *cmd_line,
⋮----
void os_conpty_set_size(conpty_t *conpty_object, uint16_t width, uint16_t height)
⋮----
void os_conpty_free(void *data)
</file>

<file path="src/nvim/os/pty_conpty_win.h">
typedef struct conpty {
⋮----
} conpty_t;
</file>

<file path="src/nvim/os/pty_proc_unix.c">
int forkpty(int *, char *, const struct termios *, const struct winsize *);
⋮----
static int vim_openpty(int *amaster, int *aslave, char *name, struct termios *termp,
⋮----
static int vim_login_tty(int fd)
⋮----
pid_t vim_forkpty(int *amaster, char *name, struct termios *termp, struct winsize *winp)
⋮----
int pty_proc_spawn(PtyProc *ptyproc)
⋮----
const char *pty_proc_tty_name(PtyProc *ptyproc)
⋮----
void pty_proc_resize(PtyProc *ptyproc, uint16_t width, uint16_t height)
⋮----
void pty_proc_resume(PtyProc *ptyproc)
⋮----
void pty_proc_flush_master(PtyProc *ptyproc)
⋮----
void pty_proc_close(PtyProc *ptyproc)
⋮----
void pty_proc_close_master(PtyProc *ptyproc)
⋮----
void pty_proc_teardown(Loop *loop)
⋮----
static void init_child(PtyProc *ptyproc)
⋮----
static void init_termios(struct termios *termios) FUNC_ATTR_NONNULL_ALL
⋮----
static int set_duplicating_descriptor(int fd, uv_pipe_t *pipe)
⋮----
... (4 lines truncated)
</file>

<file path="src/nvim/os/pty_proc_unix.h">
} PtyProc;
</file>

<file path="src/nvim/os/pty_proc_win.c">
static void CALLBACK pty_proc_terminate_cb(void *context, BOOLEAN unused)
⋮----
static void pty_proc_close_console(Stream *stream, void *data)
⋮----
int pty_proc_spawn(PtyProc *ptyproc)
⋮----
const char *pty_proc_tty_name(PtyProc *ptyproc)
⋮----
void pty_proc_resize(PtyProc *ptyproc, uint16_t width, uint16_t height)
⋮----
void pty_proc_resume(PtyProc *ptyproc)
⋮----
void pty_proc_flush_master(PtyProc *ptyproc)
⋮----
void pty_proc_close(PtyProc *ptyproc)
⋮----
void pty_proc_close_master(PtyProc *ptyproc)
⋮----
void pty_proc_teardown(Loop *loop)
⋮----
static void pty_proc_connect_cb(uv_connect_t *req, int status)
⋮----
static void pty_proc_finish(void **argv)
⋮----
static int build_cmd_line(char **argv, wchar_t **cmd_line, bool is_cmdexe)
⋮----
static void quote_cmd_arg(char *dest, size_t dest_remaining, const char *src)
⋮----
// No embedded double quotes or backlashes, so I can just wrap quote marks.
// around the whole thing.
... (23 lines truncated)
</file>

<file path="src/nvim/os/pty_proc_win.h">
typedef struct pty_process {
⋮----
} PtyProc;
⋮----
typedef struct arg_node {
⋮----
} ArgNode;
</file>

<file path="src/nvim/os/pty_proc.h">

</file>

<file path="src/nvim/os/shell.c">
static void save_patterns(int num_pat, char **pat, int *num_file, char ***file)
⋮----
static bool have_wildcard(int num, char **file)
⋮----
static bool have_dollars(int num, char **file)
⋮----
int os_expand_wildcards(int num_pat, char **pat, int *num_file, char ***file, int flags)
⋮----
// Assume the nonomatch option is valid only for csh like shells,
// otherwise, this may set the positional parameters for the shell,
// e.g. "$*".
⋮----
// Put a backslash before special
// characters, except inside ``.
⋮----
// Remove a backslash, take char literally.  But keep
// backslash inside backticks, before a special character
// and before a backtick.
⋮----
// Put a backslash before a special character, but not
// when inside ``. And not for $var when EW_KEEPDOLLAR is
// set.
⋮----
// Copy one character.
⋮----
strcat(command, "&");               // put the '&' after the redirection
⋮----
// Using zsh -G: If a pattern has no matches, it is just deleted from
// the argument list, otherwise zsh gives an error message and doesn't
// expand any other pattern.
... (45 lines truncated)
</file>

<file path="src/nvim/os/shell.h">
} ShellOpts;
</file>

<file path="src/nvim/os/signal.c">
void signal_init(void)
⋮----
static void signal_ignore_deadly(void)
⋮----
void signal_teardown(void)
⋮----
void signal_start(void)
⋮----
void signal_stop(void)
⋮----
void signal_reject_deadly(void)
⋮----
void signal_accept_deadly(void)
⋮----
static char *signal_name(int signum)
⋮----
static void deadly_signal(int signum)
⋮----
static void on_signal(SignalWatcher *handle, int signum, void *data)
</file>

<file path="src/nvim/os/signal.h">

</file>

<file path="src/nvim/os/stdpaths_defs.h">
} XDGVarType;
</file>

<file path="src/nvim/os/stdpaths.c">
const char *get_appname(bool namelike)
⋮----
/// Ensure that APPNAME is valid. Must be a name or relative path.
bool appname_is_valid(void)
⋮----
// TODO(justinmk): on Windows, path_is_absolute says "/" is NOT absolute. Should it?
⋮----
/// Remove duplicate directories in the given XDG directory.
/// @param[in]  List of directories possibly with duplicates
/// @param[out]  List of directories without duplicates
static char *xdg_remove_duplicate(char *ret, const char *sep)
⋮----
// Check if the directory is not already in the list
⋮----
// If it's not a duplicate, add it to the list
⋮----
char *stdpaths_get_xdg_var(const XDGVarType idx)
⋮----
// Special-case: stdpath('run') is defined at startup.
⋮----
ret = xmemdupz(ret, len >= 2 ? len - 1 : 0);  // Trim trailing slash.
⋮----
/// Return Nvim-specific XDG directory subpath.
///
/// Windows: Uses "…/$NVIM_APPNAME-data" for kXDGDataHome to avoid storing
⋮----
char *get_xdg_home(const XDGVarType idx)
⋮----
char *stdpaths_user_cache_subpath(const char *fname)
⋮----
... (6 lines truncated)
</file>

<file path="src/nvim/os/time_defs.h">
typedef uint64_t Timestamp;
</file>

<file path="src/nvim/os/time.c">
uint64_t os_hrtime(void)
⋮----
int64_t os_realtime(void)
⋮----
uint64_t os_now(void)
⋮----
void os_delay(uint64_t ms, bool ignoreinput)
⋮----
void os_sleep(uint64_t ms)
⋮----
struct tm *os_localtime_r(const time_t *restrict clock,
⋮----
return localtime_r(clock, result);  // NOLINT(runtime/threadsafe_fn)
⋮----
// Windows version of localtime() is thread-safe.
// See http://msdn.microsoft.com/en-us/library/bf12f0hc%28VS.80%29.aspx
struct tm *local_time = localtime(clock);  // NOLINT(runtime/threadsafe_fn)
⋮----
/// Gets the current Unix timestamp and adjusts it to local time.
///
/// @param result Pointer to a 'struct tm' where the result should be placed
/// @return A pointer to a 'struct tm' in the current time zone (the 'result'
///         argument) or NULL in case of error
struct tm *os_localtime(struct tm *result) FUNC_ATTR_NONNULL_ALL
⋮----
/// Portable version of POSIX ctime_r()
⋮----
/// @param clock[in]
/// @param result[out] Pointer to a 'char' where the result should be placed
/// @param result_len length of result buffer
... (13 lines truncated)
</file>

<file path="src/nvim/os/time.h">

</file>

<file path="src/nvim/os/unix_defs.h">

</file>

<file path="src/nvim/os/users.c">
static void add_user(garray_T *users, char *user, bool need_copy)
⋮----
int os_get_usernames(garray_T *users)
⋮----
int os_get_username(char *s, size_t len)
⋮----
int os_get_uname(uv_uid_t uid, char *s, size_t len)
⋮----
char *os_get_userdir(const char *name)
⋮----
void free_users(void)
⋮----
static void init_users(void)
⋮----
char *get_users(expand_T *xp, int idx)
⋮----
int match_user(char *name)
</file>

<file path="src/nvim/os/win_defs.h">
// Character that separates entries in $PATH.
⋮----
typedef int mode_t;
</file>

<file path="src/nvim/po/af.po">
# Afrikaans translation for Vim
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
# Danie Roux <droux@tuks.co.za>, 2001
# Edited: Jean Jordaan (njj) <jean@upfrontsystems.co.za>, 10/01/2001
# Edited by Danie on the 31st of October 2001
# Edited by Danie on the 30th of July 2005
#
# njj: Save == Stoor. Write == Skryf.
# njj: "deleted" == "geskrap"; "remove" == "verwyder"
# njj: "source" == "uitvoer", want "sourced" lκers word uitgevoer
# njj: "abort" == "staak"
# close == sluit
# Onseker:
# X Display - vertoonskerm? (njj: ek dink dis reg.)
# open vim in another GTK Widget - het vertaal as element (njj: OK, maar
# 'n element is algemener as 'n widget: mens kry byvoorbeeld HTML
# en XML elemente. Maar ek kan nie nou aan 'n spesifieker woord dink
# nie.)
# Printing aborted - drukkery gestaak? (njj: ek dink dis reg.)
#
# exception - uitsondering
# abandon - weg gegooi
# socket - WEET NIE
msgid ""
msgstr ""
"Project-Id-Version: Vim 6.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-07 20:04+0100\n"
"PO-Revision-Date: Wed Oct 31 13:41 SAST 2001\n"
... (7481 lines truncated)
</file>

<file path="src/nvim/po/ca.po">
# Catalan messages for vim.
# Copyright (C) 2003-2012 Ernest Adrogué <eadrogue@gmx.net>.
# This file is distributed under the Vim License.
#
msgid ""
msgstr ""
"Project-Id-Version: vim 7.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2008-06-06 14:40+0100\n"
"Last-Translator: Ernest Adrogué <eadrogue@gmx.net>\n"
"Language-Team: Catalan <ca@dodds.net>\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "Porqueria després de l'argument d'opció"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
msgid "[Location List]"
msgstr "[Llista de posicions]"

... (7935 lines truncated)
</file>

<file path="src/nvim/po/check.vim">
" Vim script for checking .po files.
"
" Goes through the xx.po file (more than once)
" and verify various congruences
" See the comments in the code

" Last Update: 2025 Aug 06

if 1 " Only execute this if the eval feature is available.

" Using line continuation (set cpo to vim default value)
let s:save_cpo = &cpo
set cpo&vim

" This only works when 'wrapscan' is not set.
let s:save_wrapscan = &wrapscan
set nowrapscan

let filename = "check-" . expand("%:t:r") . ".log"
exe 'redir! > ' . filename

" Function to get a split line at the cursor.
" Used for both msgid and msgstr lines.
" Removes all text except % items and returns the result.
func! GetMline()
  let idline = substitute(getline('.'), '"\(.*\)"$', '\1', '')
  while line('.') < line('$')
    silent +
    let line = getline('.')
    if line[0] != '"'
... (316 lines truncated)
</file>

<file path="src/nvim/po/cleanup.vim">
" Vim script to cleanup a .po file:
" - Remove line numbers (avoids that diffs are messy).
" - Comment-out fuzzy and empty messages.
" - Make sure there is a space before the string (required for Solaris).
" Requires Vim 6.0 or later (because of multi-line search patterns).

" Disable diff mode, because it makes this very slow
let s:was_diff = &diff
setl nodiff

" untranslated message preceded by c-format or comment
silent g/^#, c-format\n#/.d _
silent g/^#\..*\n#/.d _

" c-format comments have no effect, the check.vim scripts checks it.
" But they might still be useful?
" silent g/^#, c-format$/d _

silent g/^#[:~] /d _
silent g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
silent g/^msgstr"/s//msgstr "/
silent g/^msgid"/s//msgid "/
silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /

" remove stray comment
silent g/^\%(#.*\n\)\+\n/d

" Comments only useful for the translator
silent g/^#\./d _

... (8 lines truncated)
</file>

<file path="src/nvim/po/cs.cp1250.po">
# Czech translation of vim
# Jiří Pavlovský <jpavlovsky@mbox.vol.cz>, 2000 - 2002.
# Some completion for vim6.0 added by Jiří Březina <brz@centrum.cz>
# Some bugfixes by Tomá Zellerin <zellerin@volny.cz>
#
# Generated from cs.po, DO NOT EDIT.
#
msgid ""
msgstr ""
"Project-Id-Version: vim-6.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2002-02-06 22:29+0100\n"
"Last-Translator: Jiří Pavlovský <jpavlovsky@mbox.vol.cz>\n"
"Language-Team: Czech <cs@li.org>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=cp1250\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "E258: Nelze předat klientovi"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
... (7648 lines truncated)
</file>

<file path="src/nvim/po/cs.po">
# Czech translation of vim
# Jiøí Pavlovský <jpavlovsky@mbox.vol.cz>, 2000 - 2002.
# Some completion for vim6.0 added by Jiøí Bøezina <brz@centrum.cz>
# Some bugfixes by Tomá¹ Zellerin <zellerin@volny.cz>
#
# Original translations.
#
msgid ""
msgstr ""
"Project-Id-Version: vim-6.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2002-02-06 22:29+0100\n"
"Last-Translator: Jiøí Pavlovský <jpavlovsky@mbox.vol.cz>\n"
"Language-Team: Czech <cs@li.org>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-2\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "E258: Nelze pøedat klientovi"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
... (7648 lines truncated)
</file>

<file path="src/nvim/po/da.po">
# Danish translation for Vim
# Copyright (C) 2018 The Vim authors
# This file is distributed under the same license as the vim package.
# scootergrisen, 2018.
msgid ""
msgstr ""
"Project-Id-Version: Vim 8.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-08 22:09+0200\n"
"PO-Revision-Date: 2018-06-23 23:30+0200\n"
"Last-Translator: scootergrisen\n"
"Language-Team: Danish\n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "E831: bf_key_init() called with empty password"
msgstr "E831: bf_key_init() kaldt med tom adgangskode"

msgid "E820: sizeof(uint32_t) != 4"
msgstr "E820: sizeof(uint32_t) != 4"

msgid "E817: Blowfish big/little endian use wrong"
msgstr "E817: Forkert brug af stor/lille byterækkefølge for blowfish"

msgid "E818: sha256 test failed"
msgstr "E818: sha256-test mislykkede"

... (6941 lines truncated)
</file>

<file path="src/nvim/po/de.po">
# German Translation for Vim		vim:set foldmethod=marker:
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# Previous-Translator(s):
# Johannes Zellner <johannes@zellner.org>
# Gerfried Fuchs <alfie@ist.org>
msgid ""
msgstr ""
"Project-Id-Version: Vim(deutsch)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-26 15:13+0200\n"
"PO-Revision-Date: 2008-05-24 17:26+0200\n"
"Last-Translator: was: Georg Dahn\n"
"Language-Team: German <de@li.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO_8859-1\n"
"Content-Transfer-Encoding: 8-bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../api/private/helpers.c:197
msgid "Unable to get option value"
msgstr "Kann Optionswert nicht ermitteln"

#: ../api/private/helpers.c:200
msgid "internal error: unknown option type"
msgstr "interner Fehler: unbekannter Optionstyp"

... (7868 lines truncated)
</file>

<file path="src/nvim/po/en_GB.po">
# UK English Translation for Vim		vim:set foldmethod=marker:
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# FIRST AUTHOR Mike Williams <mrw@eandem.co.uk>, 2003.
#
# Style Guide:
# o English spelling!
# o -ise, not -ize.
# o No contractions.
# o Cannot, not can not.
# o Backward (no s) when used as an adjective.
# o TBC ...
#
msgid ""
msgstr ""
"Project-Id-Version: Vim(UK English)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2003-02-25 11:05+0000\n"
"Last-Translator: Mike Williams <mrw@eandem.co.uk>\n"
"Language-Team: Mike Williams <mrw@eandem.co.uk>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO_8859-1\n"
"Content-Transfer-Encoding: 7bit\n"

#: ../api/private/helpers.c:201
msgid "Unable to get option value"
... (6131 lines truncated)
</file>

<file path="src/nvim/po/eo.po">
# Esperanto Translation for Vim
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# UNUA TRADUKISTO Dominique PELLE   <dominique.pelle ĉe gmail.com>
# PROVLEGANTO(J)  Felipe CASTRO     <fefcas ĉe gmail.com>
#                 Antono MECHELYNCK <antoine.mechelynck ĉe gmail.com>
#                 Yves NEVELSTEEN
#
# Uzitaj vortaroj kaj fakvortaroj:
#   Revo:                http://www.reta-vortaro.de/revo/
#   Komputeko:           http://komputeko.net/index_eo.php
#   Komputada leksikono: http://bertilow.com/div/komputada_leksikono/
#
msgid ""
msgstr ""
"Project-Id-Version: Vim(Esperanto)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-02 22:42+0200\n"
"PO-Revision-Date: 2017-10-02 22:57+0200\n"
"Last-Translator: Dominique PELLÉ <dominique.pelle@gmail.com>\n"
"Language-Team: \n"
"Language: eo\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "E831: bf_key_init() called with empty password"
... (6698 lines truncated)
</file>

<file path="src/nvim/po/es.po">
# Spanish translation for Vim
#
# Translation project homepage:
# vim-doc-es http://www.assembla.com/wiki/show/vim-doc-es
#
# Last translators:
# Pedro A. López-Valencia <vorbote@users.sourceforge.net>, 2003-06,2009
# Omar Campagne Polaino <ocampagne@gmail.com> 2009
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 7.2.284 (rev 1692)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2009-12-04 18:52+0100\n"
"Last-Translator: Omar Campagne <ocampagne@gmail.com>\n"
"Language-Team: vim-doc-es http://www.assembla.com/wiki/show/vim-doc-es\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: octect-stream\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "Basura después de la opción"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
... (7989 lines truncated)
</file>

<file path="src/nvim/po/fi.po">
# Finnish translation for Vim.
# Copyright (C) 2003-2006 Free Software Foundation, Inc.
# 2007-2018, Flammie Pirinen <flammie@iki.fi>
#
# Jargonia ei ole yritetty suotta kotoperäistää missä teknisempi lainasanasto
# tulee paremmin kyseeseen.
#
# Sanastosta:
# * Fold on sellainen moderneissa ohjelmointi-IDE:issä oleva toiminto, jolla
#   lohko koodia esim. funktio piilotetaan näkymästä: suom. taitos alkup.
#   analogian mukaan
# * source, v. lataa tiedoston, kuten bash-komento source (tai .)
# * dictionary (dict) on vaihtelevasti sanakirja tai tietorakenne
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-19 16:46+0200\n"
"PO-Revision-Date: 2016-08-29 11:27+0200\n"
"Last-Translator: Flammie A Pirinen <flammie@iki.fi>\n"
"Language-Team: Finnish <laatu@lokalisointi.org>\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#, fuzzy
#~ msgid "Index out of bounds"
... (7572 lines truncated)
</file>

<file path="src/nvim/po/fixfilenames.vim">
" Invoked with the name "vim.pot" and a list of Vim script names.
" Converts them to a .js file, stripping comments, so that xgettext works.

set shortmess+=A

for name in argv()[1:]
  let jsname = fnamemodify(name, ":t:r") .. ".js"
  exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
endfor

write
last
quit
</file>

<file path="src/nvim/po/ga.po">
# Irish translations for vim.
# This file is distributed under the same license as the vim package.
# Kevin Patrick Scannell <kscanne@gmail.com>, 2005, 2006, 2008, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: vim 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-11 15:45-0500\n"
"PO-Revision-Date: 2010-04-14 10:01-0500\n"
"Last-Translator: Kevin Patrick Scannell <kscanne@gmail.com>\n"
"Language-Team: Irish <gaeilge-gnulinux@lists.sourceforge.net>\n"
"Language: ga\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=5; plural=n==1 ? 0 : n==2 ? 1 : (n>2 && n<7) ? 2 :"
"(n>6 && n<11) ? 3 : 4;\n"

msgid "E831: bf_key_init() called with empty password"
msgstr "E831: cuireadh glaoch ar bf_key_init() le focal faire folamh"

msgid "E820: sizeof(uint32_t) != 4"
msgstr "E820: sizeof(uint32_t) != 4"

msgid "E817: Blowfish big/little endian use wrong"
msgstr "E817: Ъsбid mhнcheart Blowfish mуrcheannach/caolcheannach"

msgid "E818: sha256 test failed"
msgstr "E818: Theip ar thбstбil sha256"
... (7364 lines truncated)
</file>

<file path="src/nvim/po/it.po">
# Italian translation for Vim
#
# Antonio Colombo <azc100@gmail.com>, 2000
# Vlad Sandrini <vlad.gently@gmail.com>, 2002
# Luciano Montanaro <mikelima@cirulla.net>, 2006
#
# Ogni commento è benvenuto...
# Every remark is very welcome...
#
# Translation done under Linux and using an Italian keyboard.
# English words left in the text are unmodified at plural.
# Option names are mostly left untouched.
#
msgid ""
msgstr ""
"Project-Id-Version: vim 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-02-11 12:10+0100\n"
"PO-Revision-Date:  2016-02-11 14:42+0200\n"
"Last-Translator:   Antonio Colombo   <azc100@gmail.com>\n"
"Language-Team:     Antonio Colombo   <azc100@gmail.com>"
"                   Vlad Sandrini     <vlad.gently@gmail.com"
"                   Luciano Montanaro <mikelima@cirulla.net>\n"
"Language: Italian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO_8859-1\n"
"Content-Transfer-Encoding: 8-bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../api/private/helpers.c:201
... (8137 lines truncated)
</file>

<file path="src/nvim/po/ja.euc-jp.po">
# Japanese translation for Vim
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# Copyright (C) 2001-2018 MURAOKA Taro <koron.kaoriya@gmail.com>,
# 			  vim-jp <http://vim-jp.org/>
#
# THIS FILE IS DISTRIBUTED UNDER THE VIM LICENSE.
#
# Generated from ja.po, DO NOT EDIT.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 8.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-18 00:43+0900\n"
"PO-Revision-Date: 2017-05-18 00:45+0900\n"
"Last-Translator: MURAOKA Taro <koron.kaoriya@gmail.com>\n"
"Language-Team: Japanese <https://github.com/vim-jp/lang-ja>\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=euc-jp\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"

msgid "E831: bf_key_init() called with empty password"
msgstr "E831: bf_key_init() が空パスワードで呼び出されました"

msgid "E820: sizeof(uint32_t) != 4"
... (6641 lines truncated)
</file>

<file path="src/nvim/po/ja.po">
# Japanese translation for Neovim
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# Copyright (C) 2001-2023 MURAOKA Taro <koron.kaoriya@gmail.com>,
# 			  vim-jp <http://vim-jp.org/>
#
# THIS FILE IS DISTRIBUTED UNDER THE VIM LICENSE.
#
# Original translations.
#
msgid ""
msgstr ""
"Project-Id-Version: Neovim 0.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-14 19:01+0900\n"
"PO-Revision-Date: 2024-03-14 19:46+0900\n"
"Last-Translator: ite-usagi <https://github.com/ite-usagi>\n"
"Language-Team: Japanese <https://github.com/vim-jp/lang-ja>\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"

msgid "(local to window)"
msgstr "(ウィンドウについてローカル)"

msgid "(local to buffer)"
... (7347 lines truncated)
</file>

<file path="src/nvim/po/ko.UTF-8.po">
# Korean translation for Vim
#
# FIRST AUTHOR SungHyun Nam <goweol@gmail.com>, 2000-2011
#
# Original translations.
#
msgid ""
msgstr ""
"Project-Id-Version: vim 7.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2010-02-18 09:49+0900\n"
"Last-Translator: SungHyun Nam <goweol@gmail.com>\n"
"Language-Team: GTP Korean <gnome-kr-translation@gnome.or.kr>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "옵션 인자 뒤에 쓰레기 값"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
msgid "[Location List]"
... (7708 lines truncated)
</file>

<file path="src/nvim/po/nb.po">
# Norwegian (Bokmål) translation of Vim.
# Copyright (C) 2003-2007 Free Software Foundation, Inc.
# FIRST AUTHOR Øyvind A. Holm <sunny@sunbase.org>, 2003-2007.
# Id: no.po 435 2007-03-21 10:52:22Z sunny256
#
# Comments and error reports appreciated.
#
# Information about the "Vim in Norwegian" project:
#
#   http://www.sunbase.org/src/vim/norwegian/
#
# New versions of the translation files can be downloaded in .tar.gz
# format from
#
#   http://svn.sunbase.org/repos/norwegian_vim/download/
#
# The files are stored in the Subversion version control system and
# users of this software can check out the latest version with
#
#   svn checkout http://svn.sunbase.org/repos/norwegian_vim/trunk/msgs norwegian_vim-msgs
#
# This will place the message files into the "norwegian_vim-msgs"
# directory.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 6.x\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2007-03-21 11:51+0100\n"
... (7744 lines truncated)
</file>

<file path="src/nvim/po/nl.po">
# Dutch Translation for Vim		vim:set foldmethod=marker:
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
# Previous-Translator(s):
# highlight: oplichten
# Erwin Poeze <erwin.poeze@gmail.com>, 2011, 2012.
msgid ""
msgstr ""
"Project-Id-Version: vim 7.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2012-03-28 08:07+0200\n"
"Last-Translator: YOUR NAME <E-MAIL@ADDRESS>\n"
"Language-Team: Dutch <vertaling@vrijschrift.nl>\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "Rommel na optieargument"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
... (7216 lines truncated)
</file>

<file path="src/nvim/po/no.po">
# Norwegian (Bokmål) translation of Vim.
# Copyright (C) 2003-2007 Free Software Foundation, Inc.
# FIRST AUTHOR Øyvind A. Holm <sunny@sunbase.org>, 2003-2007.
# Id: no.po 435 2007-03-21 10:52:22Z sunny256
#
# Comments and error reports appreciated.
#
# Information about the "Vim in Norwegian" project:
#
#   http://www.sunbase.org/src/vim/norwegian/
#
# New versions of the translation files can be downloaded in .tar.gz
# format from
#
#   http://svn.sunbase.org/repos/norwegian_vim/download/
#
# The files are stored in the Subversion version control system and
# users of this software can check out the latest version with
#
#   svn checkout http://svn.sunbase.org/repos/norwegian_vim/trunk/msgs norwegian_vim-msgs
#
# This will place the message files into the "norwegian_vim-msgs"
# directory.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 6.x\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2007-03-21 11:51+0100\n"
... (7744 lines truncated)
</file>

<file path="src/nvim/po/pl.UTF-8.po">
# Polish translation for Vim
#
# updated 2013 for vim-7.4
#
# FIRST AUTHOR Marcin Dalecki <martin@dalecki.de>, 2000.
# Mikolaj Machowski <mikmach@wp.pl>, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013.
msgid ""
msgstr ""
"Project-Id-Version: pl\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2010-08-10 18:15+0200\n"
"Last-Translator: Mikolaj Machowski <mikmach@wp.pl>\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Lokalize 1.0\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2);\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "nie mogę pobrać wartości opcji"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr "błąd wewnętrzny: nieznany typ opcji"

... (8084 lines truncated)
</file>

<file path="src/nvim/po/pt_BR.po">
# Brazilian Portuguese Translation for Vim	    vim:set foldmethod=marker:
#
msgid ""
msgstr ""
"Project-Id-Version: Vim 7.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-10 14:22-0300\n"
"PO-Revision-Date: 2014-06-25 20:03-0300\n"
"Last-Translator: Eduardo Elias Ferreira  <camponez@gmail.com>\n"
"Language-Team: Brazilian Portuguese <pt-br@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"

#: ../misc2.c:297
#, c-format
msgid "Calling shell to execute: \"%s\""
msgstr "Chamando o shell para executar: \"%s\""

#: ../screen.c:4811 ../buffer.c:3215
msgid "[Help]"
msgstr "[Ajuda]"

#: ../screen.c:4815 ../buffer.c:3244
msgid "[Preview]"
msgstr "[Visualiza├Д├Бo]"

#: ../screen.c:4823 ../fileio.c:1855 ../buffer.c:2496 ../buffer.c:3207
msgid "[RO]"
... (7790 lines truncated)
</file>

<file path="src/nvim/po/ru.po">
# Russian translation for Vim
#
# Об условиях использования читайте в редакторе Vim ":help uganda"
#
# vassily "vr" ragosin <vrr@users.sourceforge.net>, 2004
# Sergey Alyoshin <alyoshin.s@gmail.com>, 2013
#
msgid ""
msgstr ""
"Project-Id-Version: vim_ru\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2014-10-10 12:00+0400\n"
"Last-Translator: Sergey Alyoshin <alyoshin.s@gmail.com>\n"
"Language-Team: \n"
"Language: Russian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "Невозможно получить значение опции"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr "Внутренняя ошибка: неизвестный тип опции"
... (8102 lines truncated)
</file>

<file path="src/nvim/po/sk.cp1250.po">
# Slovak translation of vim
# Lubomir Host 'rajo' <rajo AT platon.sk>
# 2005 - Platon Group, http://platon.sk/
# $Revision: 1.4 $
# $LastChangedDate: 2005-10-08 12:00:24 +0200 (Sat, 08 Oct 2005) $
msgid ""
msgstr ""
"Project-Id-Version: vim\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2005-09-30 15:58+0200\n"
"Last-Translator: Lubomir Host <rajo@platon.sk>\n"
"Language-Team: Slovak <sk-i18n@lists.linux.sk>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=cp1250\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Vim 7.x\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "Chyby za parametrom vožby"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
msgid "[Location List]"
... (7783 lines truncated)
</file>

<file path="src/nvim/po/sk.po">
# Slovak translation of vim
# Lubomir Host 'rajo' <rajo AT platon.sk>
# 2005 - Platon Group, http://platon.sk/
# $Revision: 1.4 $
# $LastChangedDate: 2005-10-08 12:00:24 +0200 (Sat, 08 Oct 2005) $
msgid ""
msgstr ""
"Project-Id-Version: vim\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-26 14:21+0200\n"
"PO-Revision-Date: 2005-09-30 15:58+0200\n"
"Last-Translator: Lubomir Host <rajo@platon.sk>\n"
"Language-Team: Slovak <sk-i18n@lists.linux.sk>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-2\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Vim 7.x\n"

#: ../api/private/helpers.c:201
#, fuzzy
msgid "Unable to get option value"
msgstr "Chyby za parametrom voµby"

#: ../api/private/helpers.c:204
msgid "internal error: unknown option type"
msgstr ""

#: ../buffer.c:92
msgid "[Location List]"
... (7787 lines truncated)
</file>

<file path="src/nvim/po/sr.po">
# Serbian Cyrillic translation for Vim
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
# Copyright (C) 2021
# This file is distributed under the same license as the Vim package.
# FIRST AUTHOR Ivan Pešić <ivan.pesic@gmail.com>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim(Serbian)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-06-13 13:16+0400\n"
"PO-Revision-Date: 2021-06-13 13:50+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: Serbian\n"
"Language: sr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

msgid "E163: There is only one file to edit"
msgstr "E163: Постоји само један фајл за уређивање"

msgid "E164: Cannot go before first file"
msgstr "E164: Не може да се иде испред првог фајла"

msgid "E165: Cannot go beyond last file"
... (7496 lines truncated)
</file>

<file path="src/nvim/po/sv.po">
# Swedish translation for Vim.
# Copyright (C) 2003-2026 Free Software Foundation, Inc.
# Johan Svedberg <johan@svedberg.com>, 2003-2007.
# Daniel Nylander <po@danielnylander.se>, 2025, 2026.
msgid ""
msgstr ""
"Project-Id-Version: Vim 9.1\n"
"Report-Msgid-Bugs-To: vim-dev@vim.org\n"
"POT-Creation-Date: 2026-01-06 14:41+0000\n"
"PO-Revision-Date: 2026-01-11 14:27+0100\n"
"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
"Language: sv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Poedit 3.8\n"

msgid "ERROR: "
msgstr "FEL: "

#, c-format
msgid ""
"\n"
"[bytes] total alloc-freed %lu-%lu, in use %lu, peak use %lu\n"
msgstr ""
"\n"
"[byte] sammanlagd allok-frigjord %lu-%lu, i användning %lu, toppanvändning "
"%lu\n"
... (11255 lines truncated)
</file>

<file path="src/nvim/po/tr.po">
# Turkish translations for Neovim
# Neovim Türkçe çevirileri
# Copyright (C) 2019-2022 Emir SARI <emir_sari@icloud.com>
# This file is distributed under the same license as the Nvim package.
# Emir SARI <emir_sari@icloud.com>, 2019-2022
#
msgid ""
msgstr ""
"Project-Id-Version: Neovim Turkish Localization Project\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-14 17:27+0300\n"
"PO-Revision-Date: 2023-06-14 23:00+0300\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: Turkish <https://github.com/bitigchi/neovim>\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "(local to window)"
msgstr "(pencereye yerel)"

msgid "(local to buffer)"
msgstr "(arabelleğe yerel)"

msgid "(global or local to buffer)"
msgstr "(arabelleğe global veya yerel)"

msgid ""
... (6051 lines truncated)
</file>

<file path="src/nvim/po/uk.po">
#
# Ukrainian translation for Vim
#
# Original translations
#
# Copyright (C) 2001-2026 Bohdan Vlasyuk <bohdan@vstu.edu.ua>
# Bohdan donated this work to be distributed with Vim under the Vim license.
#
# Thanks to:
#   Dmytro Kovalov <dmytro.kovalov@nssmb.com> for useful suggestions
#   Dmytro O. Redchuk <dor@kiev-online.net> for viminfo bug
#
msgid ""
msgstr ""
"Project-Id-Version: Neovim Ukrainian\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-27 20:14+0200\n"
"PO-Revision-Date: 2023-12-31 12:35+0200\n"
"Last-Translator: Анатолій Сахнік <sakhnik@gmail.com>\n"
"Language-Team: Ukrainian\n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

msgid "E249: Window layout changed unexpectedly"
msgstr "E249: Розміщення вікна несподівано змінилося"

... (7413 lines truncated)
</file>

<file path="src/nvim/po/vi.po">
# Vietnamese translation for Vim
# first translator(s): Phan Vinh Thinh <teppi@vnlinux.org>, 2005
# Original translations.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-03 22:06+0100\n"
"PO-Revision-Date: 2024-12-03 22:07+0100\n"
"Last-Translator: Phạm Bình An <111893501+brianhuster@users.noreply.github.com>\n"
"Language-Team: Phan Vinh Thinh <teppi@vnlinux.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "E82: Cannot allocate any buffer, exiting..."
msgstr "E82: Không thể phân chia bộ nhớ thậm chí cho một bộ đệm, thoát..."

msgid "E83: Cannot allocate buffer, using other one..."
msgstr "E83: Không thể phân chia bộ nhớ cho bộ đệm, sử dụng bộ đệm khác..."

msgid "E515: No buffers were unloaded"
msgstr "E515: Không có bộ đệm nào được bỏ nạp từ bộ nhớ"

msgid "E516: No buffers were deleted"
msgstr "E516: Không có bộ đệm nào bị xóa"

msgid "E517: No buffers were wiped out"
msgstr "E517: Không có bộ đệm nào được làm sạch"
... (5090 lines truncated)
</file>

<file path="src/nvim/po/zh_CN.UTF-8.po">
# Chinese (simplified) Translation for Vim
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# FIRST AUTHOR  Wang Jun <junw@turbolinux.com.cn>
#
# TRANSLATORS
#   Edyfox <edyfox@gmail.com>
#   Yuheng Xie <elephant@linux.net.cn>
#   lilydjwg <lilydjwg@gmail.com>
#   Ada (Haowen) Yu <me@yuhaowen.com>
#   Sizhe Zhao <prc.zhao@outlook.com>
#
# Original translations.
#
msgid ""
msgstr ""
"Project-Id-Version: Vim(Simplified Chinese)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-17 08:00+0800\n"
"PO-Revision-Date: 2023-01-24 13:00+0800\n"
"Last-Translator: Sizhe Zhao <prc.zhao@outlook.com>\n"
"Language-Team: Simplified Chinese <i18n-translation@lists.linux.net.cn>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"

... (11301 lines truncated)
</file>

<file path="src/nvim/po/zh_TW.UTF-8.po">
# Traditional Chinese Translation for Vim	vim:set foldmethod=marker:
#
# Do ":help uganda"  in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
#
# FIRST AUTHOR  Francis S.Lin <piaip@csie.ntu.edu.tw>, 2000
# FIRST RELEASE Thu Jun 14 14:24:17 CST 2001
# MAINTAINER: Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
#
# Last update: $LastChangedDate: 2006-04-16 22:06:40 -0400 (dom, 16 apr 2006) $
#
# XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain
#     it only because patches have been submitted for it by Debian users and the
#     former maintainer was MIA (Missing In Action), taking over its
#     maintenance was thus the only way to include those patches.
#     If you care about this file, and have time to maintain it please do so!
#
# To update, search pattern:		/fuzzy\|^msgstr ""\(\n"\)\@!
#
# DO NOT USE WORDS WITH BACKSLASH ('\') AS SECOND BYTE OF BIG5 CHARS
# EG: '功', # 許功蓋
# [blacklist: 餐枯閱珮穀跚淚躡豹擺璞縷髏吭歿俞]
# [blacklist: 娉崤黠孀廄琵愧鈾暝么吒苒塿踊]
# you can replace these characters with alternative words.
# THIS WILL CAUSE INCOMPATIBLE ON gettext 0.10.36+
#
# Note (2005.01.27):
#  A bug was found for UTF8 mode.
#   > msgid "%<PRId64> fewer lines" "on %<PRId64> lines"
#   If you don't put more (at least 2) spaces after %<PRId64>
... (9873 lines truncated)
</file>

<file path="src/nvim/tui/termkey/driver-csi.c">
static TermKeyResult handle_csi_ss3_full(TermKey *tk, TermKeyKey *key, int cmd,
⋮----
static void register_csi_ss3_full(TermKeyType type, TermKeySym sym, int modifier_set,
⋮----
static void register_csi_ss3(TermKeyType type, TermKeySym sym, unsigned char cmd)
⋮----
static void register_ss3kpalt(TermKeyType type, TermKeySym sym, unsigned char cmd, char kpalt)
⋮----
static TermKeyResult handle_csifunc(TermKey *tk, TermKeyKey *key, int cmd, TermKeyCsiParam *params,
⋮----
static void register_csifunc(TermKeyType type, TermKeySym sym, int number)
⋮----
static TermKeyResult handle_csi_u(TermKey *tk, TermKeyKey *key, int cmd, TermKeyCsiParam *params,
⋮----
static TermKeyResult handle_csi_m(TermKey *tk, TermKeyKey *key, int cmd, TermKeyCsiParam *params,
⋮----
TermKeyResult termkey_interpret_mouse(TermKey *tk, const TermKeyKey *key, TermKeyMouseEvent *event,
⋮----
static TermKeyResult handle_csi_R(TermKey *tk, TermKeyKey *key, int cmd, TermKeyCsiParam *params,
⋮----
TermKeyResult termkey_interpret_position(TermKey *tk, const TermKeyKey *key, int *line, int *col)
⋮----
static TermKeyResult handle_csi_y(TermKey *tk, TermKeyKey *key, int cmd, TermKeyCsiParam *params,
⋮----
TermKeyResult termkey_interpret_modereport(TermKey *tk, const TermKeyKey *key, int *initial,
⋮----
static TermKeyEvent parse_key_event(int n)
⋮----
static TermKeyResult parse_csi(TermKey *tk, size_t introlen, size_t *csi_len,
⋮----
... (18 lines truncated)
</file>

<file path="src/nvim/tui/termkey/driver-csi.h">

</file>

<file path="src/nvim/tui/termkey/driver-ti.c">
} trie_nodetype;
⋮----
struct trie_node {
⋮----
struct trie_node_key {
⋮----
struct trie_node_arr {
⋮----
static int insert_seq(TermKeyTI *ti, const char *seq, struct trie_node *node);
⋮----
static struct trie_node *new_node_key(TermKeyType type, TermKeySym sym, int modmask, int modset)
⋮----
static struct trie_node *new_node_arr(unsigned char min, unsigned char max)
⋮----
static struct trie_node *lookup_next(struct trie_node *n, unsigned char b)
⋮----
static void free_trie(struct trie_node *n)
⋮----
static struct trie_node *compress_trie(struct trie_node *n)
⋮----
static bool try_load_terminfo_key(TermKeyTI *ti, bool fn_nr, int key, bool shift, const char *name,
⋮----
static int load_terminfo(TermKeyTI *ti)
⋮----
void *new_driver_ti(TermKey *tk, TerminfoEntry *term)
⋮----
int start_driver_ti(TermKey *tk, void *info)
⋮----
int stop_driver_ti(TermKey *tk, void *info)
⋮----
... (6 lines truncated)
</file>

<file path="src/nvim/tui/termkey/driver-ti.h">

</file>

<file path="src/nvim/tui/termkey/README">
// Adapted from libtermkey: https://github.com/neovim/libtermkey
</file>

<file path="src/nvim/tui/termkey/termkey_defs.h">
typedef struct TermKey TermKey;
⋮----
} TermKeyCsi;
⋮----
} TermKeyResult;
⋮----
} TermKeySym;
⋮----
} TermKeyType;
⋮----
} TermKeyMouseEvent;
⋮----
} TermKeyEvent;
⋮----
} TermKeyCsiParam;
⋮----
} TermKeyKey;
⋮----
} TermKeyFormat;
⋮----
} TermKeyTI;
</file>

<file path="src/nvim/tui/termkey/termkey-internal.h">
struct TermKeyDriver {
⋮----
struct keyinfo {
⋮----
struct TermKeyDriverNode {
⋮----
struct TermKey {
⋮----
static inline void termkey_key_get_linecol(const TermKeyKey *key, int *line, int *col)
⋮----
static inline void termkey_key_set_linecol(TermKeyKey *key, int line, int col)
</file>

<file path="src/nvim/tui/termkey/termkey.c">
static void print_buffer(TermKey *tk)
⋮----
static void print_key(TermKey *tk, TermKeyKey *key)
⋮----
static const char *res2str(TermKeyResult res)
⋮----
TermKeyResult termkey_interpret_string(TermKey *tk, const TermKeyKey *key, const char **strp)
⋮----
static int snprint_cameltospaces(char *str, size_t size, const char *src)
⋮----
static int strpncmp_camel(const char **strp, const char **strcamelp, size_t n)
⋮----
static TermKey *termkey_alloc(void)
⋮----
static int termkey_init(TermKey *tk, TerminfoEntry *term)
⋮----
TermKey *termkey_new_abstract(TerminfoEntry *term, int flags)
⋮----
void termkey_free(TermKey *tk)
⋮----
void termkey_destroy(TermKey *tk)
⋮----
void termkey_hook_terminfo_getstr(TermKey *tk, TermKey_Terminfo_Getstr_Hook *hookfn, void *data)
⋮----
int termkey_start(TermKey *tk)
⋮----
int termkey_stop(TermKey *tk)
⋮----
void termkey_set_flags(TermKey *tk, int newflags)
⋮----
... (48 lines truncated)
</file>

<file path="src/nvim/tui/termkey/termkey.h">

</file>

<file path="src/nvim/tui/input_defs.h">
} KittyKey;
</file>

<file path="src/nvim/tui/input.c">
static const struct kitty_key_map_entry {
⋮----
void tinput_init(TermInput *input, Loop *loop, TerminfoEntry *ti)
⋮----
void tinput_destroy(TermInput *input)
⋮----
void tinput_start(TermInput *input)
⋮----
void tinput_stop(TermInput *input)
⋮----
static void tinput_done_event(void **argv)
⋮----
static void tinput_flush(TermInput *input)
⋮----
static void tinput_enqueue(TermInput *input, const char *buf, size_t size)
⋮----
static size_t handle_termkey_modifiers(TermKeyKey *key, char *buf, size_t buflen)
⋮----
static size_t handle_more_modifiers(TermKeyKey *key, char *buf, size_t buflen)
⋮----
static void handle_kitty_key_protocol(TermInput *input, TermKeyKey *key)
⋮----
static void forward_simple_utf8(TermInput *input, TermKeyKey *key)
⋮----
static void forward_modified_utf8(TermInput *input, TermKeyKey *key)
⋮----
static void forward_mouse_event(TermInput *input, TermKeyKey *key)
⋮----
static TermKeyResult tk_getkey(TermKey *tk, TermKeyKey *key, bool force)
⋮----
... (22 lines truncated)
</file>

<file path="src/nvim/tui/input.h">
} KeyEncoding;
⋮----
} TermInputCallbacks;
⋮----
} TermInput;
</file>

<file path="src/nvim/tui/termdef_field_defs.h">
} TermdefField;
⋮----
static inline void init_termdef_fields(void)
</file>

<file path="src/nvim/tui/terminfo_builtin.h">

</file>

<file path="src/nvim/tui/terminfo_defs.h">
} TerminfoEntry;
</file>

<file path="src/nvim/tui/terminfo_enum_defs.h">
} TerminfoDef;
⋮----
} TerminfoKey;
</file>

<file path="src/nvim/tui/terminfo.c">
} TPSTACK;
⋮----
bool terminfo_is_term_family(const char *term, const char *family)
⋮----
bool terminfo_is_bsd_console(const char *term)
⋮----
const TerminfoEntry *terminfo_from_builtin(const char *term, char **termname)
⋮----
bool terminfo_from_database(TerminfoEntry *ti, char *termname, Arena *arena)
⋮----
static const enum unibi_string uni_ids[] = {
⋮----
static const enum unibi_string uni_keys[][2] = {
⋮----
static const enum unibi_string uni_fkeys[] = {
⋮----
static const char *fmt(bool val)
⋮----
String terminfo_info_msg(const TerminfoEntry *ti, const char *termname, bool from_db)
⋮----
static int push(long num, char *string, TPSTACK *stack)
⋮----
static int pop(long *num, char **string, TPSTACK *stack)
⋮----
static bool ochar(char **buf, const char *buf_end, int c)
⋮----
static bool onum(char **buf, const char *buf_end, const char *fmt, int num, size_t len)
⋮----
size_t terminfo_fmt(char *buf_start, char *buf_end, const char *str, TPVAR params[9])
</file>

<file path="src/nvim/tui/terminfo.h">
} TPVAR;
</file>

<file path="src/nvim/tui/tui_defs.h">
typedef struct TUIData TUIData;
⋮----
} TermMode;
⋮----
} TermModeState;
</file>

<file path="src/nvim/tui/tui.c">
} Rect;
⋮----
struct TUIData {
⋮----
} FlushBufFinish;
⋮----
void tui_start(TUIData **tui_p, int *width, int *height, char **term, bool *rgb)
⋮----
static void tui_request_term_mode(TUIData *tui, TermMode mode)
⋮----
static void tui_set_term_mode(TUIData *tui, TermMode mode, bool set)
⋮----
void tui_handle_term_mode(TUIData *tui, TermMode mode, TermModeState state)
⋮----
static void tui_query_extended_underline(TUIData *tui)
⋮----
void tui_enable_extended_underline(TUIData *tui)
⋮----
static void tui_query_kitty_keyboard(TUIData *tui)
⋮----
void tui_set_key_encoding(TUIData *tui)
⋮----
static void tui_reset_key_encoding(TUIData *tui)
⋮----
static void tui_query_bg_color_noflush(TUIData *tui)
⋮----
void tui_query_bg_color(TUIData *tui)
⋮----
static void apply_termdefs(TUIData *tui)
⋮----
... (219 lines truncated)
</file>

<file path="src/nvim/tui/tui.h">

</file>

<file path="src/nvim/tui/ugrid.c">
void ugrid_init(UGrid *grid)
⋮----
void ugrid_free(UGrid *grid)
⋮----
void ugrid_resize(UGrid *grid, int width, int height)
⋮----
void ugrid_clear(UGrid *grid)
⋮----
void ugrid_clear_chunk(UGrid *grid, int row, int col, int endcol, sattr_T attr)
⋮----
void ugrid_goto(UGrid *grid, int row, int col)
⋮----
void ugrid_scroll(UGrid *grid, int top, int bot, int left, int right, int count)
⋮----
static void clear_region(UGrid *grid, int top, int bot, int left, int right, sattr_T attr)
⋮----
static void destroy_cells(UGrid *grid)
</file>

<file path="src/nvim/tui/ugrid.h">
} UCell;
⋮----
} UGrid;
</file>

<file path="src/nvim/viml/parser/expressions.c">
typedef kvec_withinit_t(ExprASTNode **, 16) ExprASTStack;
⋮----
} ExprASTWantedNode;
⋮----
} ExprASTParseType;
⋮----
typedef kvec_withinit_t(ExprASTParseType, 4) ExprASTParseTypeStack;
⋮----
} ExprOpLvl;
⋮----
} ExprOpAssociativity;
⋮----
static inline float_T scale_number(const float_T num, const uint8_t base,
⋮----
LexExprToken viml_pexpr_next_token(ParserState *const pstate, const int flags)
⋮----
// Unary not, (un)equality and regex (not) match comparison operators.
⋮----
// Less/greater [or equal to] comparison operators.
⋮----
// Minus sign, arrow from lambdas or augmented assignment.
⋮----
// Sign or augmented assignment.
⋮----
// Expression end because Ex command ended.
⋮----
const char *viml_pexpr_repr_token(const ParserState *const pstate, const LexExprToken token,
⋮----
static const char *intchar2str(const int ch)
⋮----
... (41 lines truncated)
</file>

<file path="src/nvim/viml/parser/expressions.h">
} ExprCaseCompareStrategy;
⋮----
} LexExprTokenType;
⋮----
} ExprComparisonType;
⋮----
} ExprOptScope;
⋮----
} ExprAssignmentType;
⋮----
} ExprVarScope;
⋮----
} LexExprToken;
⋮----
} LexExprFlags;
⋮----
} ExprASTNodeType;
⋮----
typedef struct expr_ast_node ExprASTNode;
⋮----
struct expr_ast_node {
⋮----
enum ExprParserFlags {
⋮----
} ExprASTError;
⋮----
} ExprAST;
</file>

<file path="src/nvim/viml/parser/parser_defs.h">
} ParserLine;
⋮----
} ParserPosition;
⋮----
} ParserStateItem;
⋮----
} ParserInputReader;
⋮----
} ParserHighlightChunk;
⋮----
typedef kvec_withinit_t(ParserHighlightChunk, 16) ParserHighlight;
⋮----
} ParserState;
</file>

<file path="src/nvim/viml/parser/parser.c">
void parser_simple_get_line(void *cookie, ParserLine *ret_pline)
⋮----
bool viml_parser_get_remaining_line(ParserState *const pstate, ParserLine *const ret_pline)
⋮----
static void viml_preader_get_line(ParserInputReader *const preader, ParserLine *const ret_pline)
⋮----
void viml_parser_destroy(ParserState *const pstate)
</file>

<file path="src/nvim/viml/parser/parser.h">
static inline void viml_parser_init(ParserState *const ret_pstate, const ParserLineGetter get_line,
⋮----
static inline void viml_parser_advance(ParserState *const pstate, const size_t len)
⋮----
static inline void viml_parser_highlight(ParserState *const pstate, const ParserPosition start,
</file>

<file path="src/nvim/vterm/encoding.c">
struct UTF8DecoderData {
⋮----
static void init_utf8(VTermEncoding *enc, void *data_)
⋮----
static void decode_utf8(VTermEncoding *enc, void *data_, uint32_t cp[], int *cpi, int cplen,
⋮----
static void decode_usascii(VTermEncoding *enc, void *data, uint32_t cp[], int *cpi, int cplen,
⋮----
struct StaticTableEncoding {
⋮----
static void decode_table(VTermEncoding *enc, void *data, uint32_t cp[], int *cpi, int cplen,
⋮----
VTermEncoding *vterm_lookup_encoding(VTermEncodingType type, char designation)
</file>

<file path="src/nvim/vterm/encoding.h">

</file>

<file path="src/nvim/vterm/keyboard.c">
static VTermKeyEncodingFlags vterm_state_get_key_encoding_flags(const VTermState *state)
⋮----
void vterm_keyboard_unichar(VTerm *vt, uint32_t c, VTermModifier mod)
⋮----
} keycodes_s;
⋮----
{ KEYCODE_NONE, NUL, 0 },  // NONE
⋮----
{ KEYCODE_ENTER,   '\r',   0 },  // ENTER
{ KEYCODE_TAB,     '\t',   0 },  // TAB
{ KEYCODE_LITERAL, '\x7f', 0 },  // BACKSPACE == ASCII DEL
{ KEYCODE_LITERAL, '\x1b', 0 },  // ESCAPE
⋮----
{ KEYCODE_CSI_CURSOR, 'A', 0 },  // UP
{ KEYCODE_CSI_CURSOR, 'B', 0 },  // DOWN
{ KEYCODE_CSI_CURSOR, 'D', 0 },  // LEFT
{ KEYCODE_CSI_CURSOR, 'C', 0 },  // RIGHT
⋮----
{ KEYCODE_CSINUM, '~', 2     },  // INS
{ KEYCODE_CSINUM, '~', 3     },  // DEL
{ KEYCODE_CSI_CURSOR, 'H', 0 },  // HOME
{ KEYCODE_CSI_CURSOR, 'F', 0 },  // END
{ KEYCODE_CSINUM, '~', 5     },  // PAGEUP
{ KEYCODE_CSINUM, '~', 6     },  // PAGEDOWN
⋮----
{ KEYCODE_NONE,   NUL,  0 },    // F0 - shouldn't happen
{ KEYCODE_SS3,    'P',  0 },    // F1
{ KEYCODE_SS3,    'Q',  0 },    // F2
{ KEYCODE_SS3,    'R',  0 },    // F3
{ KEYCODE_SS3,    'S',  0 },    // F4
... (55 lines truncated)
</file>

<file path="src/nvim/vterm/keyboard.h">

</file>

<file path="src/nvim/vterm/LICENSE">
The MIT License

Copyright (c) 2008 Paul Evans <leonerd@leonerd.org.uk>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
</file>

<file path="src/nvim/vterm/mouse.c">
static void output_mouse(VTermState *state, int code, int pressed, int modifiers, int col, int row)
⋮----
void vterm_mouse_move(VTerm *vt, int row, int col, VTermModifier mod)
⋮----
void vterm_mouse_button(VTerm *vt, int button, bool pressed, VTermModifier mod)
</file>

<file path="src/nvim/vterm/mouse.h">

</file>

<file path="src/nvim/vterm/parser.c">
static bool is_intermed(uint8_t c)
⋮----
static void do_control(VTerm *vt, uint8_t control)
⋮----
static void do_csi(VTerm *vt, char command)
⋮----
static void do_escape(VTerm *vt, char command)
⋮----
static void string_fragment(VTerm *vt, const char *str, size_t len, bool final,
⋮----
size_t vterm_input_write(VTerm *vt, const char *bytes, size_t len)
⋮----
void vterm_parser_set_callbacks(VTerm *vt, const VTermParserCallbacks *callbacks, void *user)
</file>

<file path="src/nvim/vterm/parser.h">

</file>

<file path="src/nvim/vterm/pen.c">
} VTermRGB;
⋮----
static void lookup_default_colour_ansi(long idx, VTermColor *col)
⋮----
static bool lookup_colour_ansi(const VTermState *state, long index, VTermColor *col)
⋮----
static bool lookup_colour_palette(const VTermState *state, long index, VTermColor *col)
⋮----
static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount,
⋮----
static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type, VTermValue *val)
⋮----
static void setpenattr_bool(VTermState *state, VTermAttr attr, int boolean)
⋮----
static void setpenattr_int(VTermState *state, VTermAttr attr, int number)
⋮----
static void setpenattr_col(VTermState *state, VTermAttr attr, VTermColor color)
⋮----
static void set_pen_col_ansi(VTermState *state, VTermAttr attr, long col)
⋮----
void vterm_state_newpen(VTermState *state)
⋮----
void vterm_state_resetpen(VTermState *state)
⋮----
void vterm_state_savepen(VTermState *state, int save)
⋮----
void vterm_state_set_default_colors(VTermState *state, const VTermColor *default_fg,
⋮----
void vterm_state_set_palette_color(VTermState *state, int index, const VTermColor *col)
⋮----
... (10 lines truncated)
</file>

<file path="src/nvim/vterm/pen.h">

</file>

<file path="src/nvim/vterm/README.md">
Adopted from [libvterm](https://www.leonerd.org.uk/code/libvterm/)
</file>

<file path="src/nvim/vterm/screen.c">
static inline void clearcell(const VTermScreen *screen, ScreenCell *cell)
⋮----
ScreenCell *getcell(const VTermScreen *screen, int row, int col)
⋮----
static ScreenCell *alloc_buffer(VTermScreen *screen, int rows, int cols)
⋮----
static void damagerect(VTermScreen *screen, VTermRect rect)
⋮----
static void damagescreen(VTermScreen *screen)
⋮----
static int putglyph(VTermGlyphInfo *info, VTermPos pos, void *user)
⋮----
static void sb_pushline_from_row(VTermScreen *screen, int row)
⋮----
static int moverect_internal(VTermRect dest, VTermRect src, void *user)
⋮----
static int moverect_user(VTermRect dest, VTermRect src, void *user)
⋮----
static int erase_internal(VTermRect rect, int selective, void *user)
⋮----
static int erase_user(VTermRect rect, int selective, void *user)
⋮----
static int erase(VTermRect rect, int selective, void *user)
⋮----
static int scrollrect(VTermRect rect, int downward, int rightward, void *user)
⋮----
static int movecursor(VTermPos pos, VTermPos oldpos, int visible, void *user)
⋮----
static int setpenattr(VTermAttr attr, VTermValue *val, void *user)
⋮----
... (52 lines truncated)
</file>

<file path="src/nvim/vterm/screen.h">

</file>

<file path="src/nvim/vterm/state.c">
static void putglyph(VTermState *state, const schar_T schar, int width, VTermPos pos)
⋮----
static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom)
⋮----
static void erase(VTermState *state, VTermRect rect, int selective)
⋮----
static VTermState *vterm_state_new(VTerm *vt)
⋮----
void vterm_state_free(VTermState *state)
⋮----
static void scroll(VTermState *state, VTermRect rect, int downward, int rightward)
⋮----
static void linefeed(VTermState *state)
⋮----
static void set_col_tabstop(VTermState *state, int col)
⋮----
static void clear_col_tabstop(VTermState *state, int col)
⋮----
static int is_col_tabstop(VTermState *state, int col)
⋮----
static int is_cursor_in_scrollregion(const VTermState *state)
⋮----
static void tab(VTermState *state, int count, int direction)
⋮----
static void set_lineinfo(VTermState *state, int row, int force, int dwl, int dhl)
⋮----
static int on_text(const char bytes[], size_t len, void *user)
⋮----
static int on_control(uint8_t control, void *user)
⋮----
... (70 lines truncated)
</file>

<file path="src/nvim/vterm/state.h">

</file>

<file path="src/nvim/vterm/vterm_defs.h">
typedef struct VTerm VTerm;
typedef struct VTermState VTermState;
typedef struct VTermScreen VTermScreen;
⋮----
} VTermPos;
⋮----
} VTermRect;
⋮----
} VTermColor;
⋮----
} VTermScreenCellAttrs;
⋮----
} VTermScreenCell;
⋮----
} VTermProp;
⋮----
} VTermTerminator;
⋮----
} VTermStringFragment;
⋮----
} VTermValue;
⋮----
} VTermScreenCallbacks;
⋮----
} VTermStateFallbacks;
⋮----
} VTermDamageSize;
⋮----
} VTermAttrMask;
⋮----
... (26 lines truncated)
</file>

<file path="src/nvim/vterm/vterm_internal_defs.h">
typedef struct VTermEncoding VTermEncoding;
typedef struct VTermKeyEncodingFlags VTermKeyEncodingFlags;
⋮----
} VTermEncodingInstance;
⋮----
struct VTermPen {
⋮----
struct VTermKeyEncodingFlags {
⋮----
struct VTermKeyEncodingStack {
⋮----
struct VTermState {
⋮----
struct VTerm {
⋮----
enum VTermParserState {
⋮----
struct VTermEncoding {
⋮----
} VTermEncodingType;
</file>

<file path="src/nvim/vterm/vterm_keycodes_defs.h">
} VTermModifier;
⋮----
} VTermKey;
</file>

<file path="src/nvim/vterm/vterm.c">
static void *default_malloc(size_t size, void *allocdata)
⋮----
static void default_free(void *ptr, void *allocdata)
⋮----
VTerm *vterm_new(int rows, int cols)
⋮----
VTerm *vterm_build(const struct VTermBuilder *builder)
⋮----
void vterm_free(VTerm *vt)
⋮----
void *vterm_allocator_malloc(VTerm *vt, size_t size)
⋮----
void vterm_allocator_free(VTerm *vt, void *ptr)
⋮----
void vterm_get_size(const VTerm *vt, int *rowsp, int *colsp)
⋮----
void vterm_set_size(VTerm *vt, int rows, int cols)
⋮----
void vterm_set_utf8(VTerm *vt, int is_utf8)
⋮----
void vterm_output_set_callback(VTerm *vt, VTermOutputCallback *func, void *user)
⋮----
void vterm_push_output_bytes(VTerm *vt, const char *bytes, size_t len)
⋮----
void vterm_push_output_sprintf(VTerm *vt, const char *format, ...)
⋮----
void vterm_push_output_sprintf_ctrl(VTerm *vt, uint8_t ctrl, const char *fmt, ...)
⋮----
void vterm_push_output_sprintf_str(VTerm *vt, uint8_t ctrl, bool term, const char *fmt, ...)
⋮----
... (4 lines truncated)
</file>

<file path="src/nvim/vterm/vterm.h">
static inline void vterm_rect_move(VTermRect *rect, int row_delta, int col_delta)
⋮----
} VTermColorType;
⋮----
static inline void vterm_color_rgb(VTermColor *col, uint8_t red, uint8_t green, uint8_t blue)
⋮----
static inline void vterm_color_indexed(VTermColor *col, uint8_t idx)
⋮----
void vterm_scroll_rect(VTermRect rect, int downward, int rightward,
⋮----
struct VTermScreen {
</file>

<file path="src/nvim/arabic.c">
static struct achar {
⋮----
static struct achar *find_achar(int c)
⋮----
static int chg_c_laa2i(int hid_c)
⋮----
static int chg_c_laa2f(int hid_c)
⋮----
static int can_join(int c1, int c2)
⋮----
bool arabic_maycombine(int two)
⋮----
bool arabic_combine(int one, int two)
⋮----
static bool A_is_iso(int c)
⋮----
static bool A_is_ok(int c)
⋮----
static bool A_is_valid(int c)
⋮----
int arabic_shape(int c, int *c1p, int prev_c, int prev_c1, int next_c)
</file>

<file path="src/nvim/arabic.h">

</file>

<file path="src/nvim/arglist_defs.h">
} alist_T;
⋮----
} aentry_T;
</file>

<file path="src/nvim/arglist.c">
} arg_all_state_T;
⋮----
static int check_arglist_locked(void)
⋮----
void alist_clear(alist_T *al)
⋮----
void alist_init(alist_T *al)
⋮----
void alist_unlink(alist_T *al)
⋮----
void alist_new(void)
⋮----
void alist_expand(int *fnum_list, int fnum_len)
⋮----
void alist_set(alist_T *al, int count, char **files, int use_curbuf, int *fnum_list, int fnum_len)
⋮----
void alist_add(alist_T *al, char *fname, int set_fnum)
⋮----
static char *do_one_arg(char *str)
⋮----
static void get_arglist(garray_T *gap, char *str, bool escaped)
⋮----
int get_arglist_exp(char *str, int *fcountp, char ***fnamesp, bool wig)
⋮----
static void alist_check_arg_idx(void)
⋮----
static void alist_add_list(int count, char **files, int after, bool will_edit)
⋮----
static void arglist_del_files(garray_T *alist_ga)
⋮----
... (56 lines truncated)
</file>

<file path="src/nvim/arglist.h">

</file>

<file path="src/nvim/ascii_defs.h">
static inline bool ascii_iswhite(int c)
⋮----
static inline bool ascii_iswhite_or_nul(int c)
⋮----
static inline bool ascii_iswhite_nl_or_nul(int c)
⋮----
static inline bool ascii_isdigit(int c)
⋮----
static inline bool ascii_isxdigit(int c)
⋮----
static inline bool ascii_isident(int c)
⋮----
static inline bool ascii_isbdigit(int c)
⋮----
static inline bool ascii_isodigit(int c)
⋮----
static inline bool ascii_isspace(int c)
</file>

<file path="src/nvim/assert_defs.h">

</file>

<file path="src/nvim/auevents.lua">
return {
  --- @type table<string,boolean>
  --- Keys are events names.
  --- Value is true if the event is window-local, else false.
  events = {
    BufAdd = true, -- after adding a buffer to the buffer list
    BufDelete = true, -- deleting a buffer from the buffer list
    BufEnter = true, -- after entering a buffer
    BufFilePost = true, -- after renaming a buffer
    BufFilePre = true, -- before renaming a buffer
    BufHidden = true, -- just after buffer becomes hidden
    BufLeave = true, -- before leaving a buffer
    BufNew = true, -- after creating any buffer
    BufNewFile = true, -- when creating a buffer for a new file
    BufReadCmd = true, -- read buffer using command
    BufReadPost = true, -- after reading a buffer
    BufReadPre = true, -- before reading a buffer
    BufUnload = true, -- just before unloading a buffer
    BufWinEnter = true, -- after showing a buffer in a window
    BufWinLeave = true, -- just after buffer removed from window
    BufWipeout = true, -- just before really deleting a buffer
    BufWriteCmd = true, -- write buffer using command
    BufWritePost = true, -- after writing a buffer
    BufWritePre = true, -- before writing a buffer
    ChanClose = false,
    ChanInfo = false, -- info was received about channel
    ChanOpen = false, -- channel was opened
    CmdAtom = false, -- after an atomic user operation (motion, operator, insert, mapping, …)
    CmdUndefined = false, -- command undefined
    CmdlineChanged = false, -- command line was modified
... (158 lines truncated)
</file>

<file path="src/nvim/autocmd_defs.h">
} AutoPat;
⋮----
} AutoCmd;
⋮----
typedef struct AutoPatCmd_S AutoPatCmd;
struct AutoPatCmd_S {
⋮----
typedef kvec_t(AutoCmd) AutoCmdVec;
⋮----
} AutoCmdEvent;
</file>

<file path="src/nvim/autocmd.c">
void autocmd_init(void)
⋮----
void autocmd_free_all_mem(void)
⋮----
static void augroup_map_del(int id, const char *name)
⋮----
static inline const char *get_deleted_augroup(void) FUNC_ATTR_ALWAYS_INLINE
⋮----
static void au_show_for_all_events(int group, const char *pat)
⋮----
static void au_show_for_event(int group, event_T event, const char *pat)
⋮----
static void aucmd_del(AutoCmd *ac)
⋮----
void aucmd_del_for_event_and_group(event_T event, int group)
⋮----
static void au_cleanup(void)
⋮----
AutoCmdVec *au_get_autocmds_for_event(event_T event)
⋮----
void aubuflocal_remove(buf_T *buf)
⋮----
int augroup_add(const char *name)
⋮----
void augroup_del_by_id(int id)
⋮----
void augroup_del(char *name, int id_for_error, bool stupid_legacy_mode)
⋮----
int augroup_find(const char *name)
⋮----
... (170 lines truncated)
</file>

<file path="src/nvim/autocmd.h">
EXTERN pos_T last_cursormoved INIT( = { 0, 0, 0 });
⋮----
EXTERN bool autocmd_busy INIT( = false);
EXTERN int autocmd_no_enter INIT( = false);
EXTERN int autocmd_no_leave INIT( = false);
⋮----
EXTERN bufref_T au_new_curbuf INIT( = { NULL, 0, 0 });
⋮----
EXTERN bool autocmd_fname_full INIT( = false);
EXTERN int autocmd_bufnr INIT( = 0);
⋮----
EXTERN bool did_cursorhold INIT( = true);
</file>

<file path="src/nvim/base64.c">
static inline uint64_t vim_htobe64(uint64_t host_64bits)
⋮----
static inline uint32_t vim_htobe32(uint32_t host_32bits)
⋮----
char *base64_encode(const char *src, size_t src_len)
⋮----
char *base64_decode(const char *src, size_t src_len, size_t *out_lenp)
</file>

<file path="src/nvim/base64.h">

</file>

<file path="src/nvim/buffer_defs.h">
} bufref_T;
⋮----
typedef struct wininfo_S WinInfo;
typedef struct frame_S frame_T;
typedef uint64_t disptick_T;
⋮----
} taggy_T;
⋮----
} winopt_T;
⋮----
struct wininfo_S {
⋮----
typedef struct qf_info_S qf_info_T;
⋮----
} syn_time_T;
⋮----
} synblock_T;
⋮----
typedef TV_DICTITEM_STRUCT(sizeof("changedtick")) ChangedtickDictItem;
⋮----
} BufUpdateCallbacks;
⋮----
struct file_buffer {
⋮----
typedef struct diffblock_S diff_T;
struct diffblock_S {
⋮----
typedef struct diffline_change_S diffline_change_T;
struct diffline_change_S {
⋮----
... (41 lines truncated)
</file>

<file path="src/nvim/buffer_updates.c">
bool buf_updates_register(buf_T *buf, uint64_t channel_id, BufUpdateCallbacks cb, bool send_buffer)
⋮----
bool buf_updates_active(buf_T *buf)
⋮----
void buf_updates_send_end(buf_T *buf, uint64_t channelid)
⋮----
void buf_updates_unregister(buf_T *buf, uint64_t channelid)
⋮----
void buf_free_callbacks(buf_T *buf)
⋮----
void buf_updates_unload(buf_T *buf, bool can_reload)
⋮----
void buf_updates_send_changes(buf_T *buf, linenr_T firstline, int64_t num_added,
⋮----
void buf_updates_send_splice(buf_T *buf, int start_row, colnr_T start_col, bcount_t start_byte,
⋮----
void buf_updates_changedtick(buf_T *buf)
⋮----
void buf_updates_changedtick_single(buf_T *buf, uint64_t channel_id)
⋮----
void buffer_update_callbacks_free(BufUpdateCallbacks cb)
</file>

<file path="src/nvim/buffer_updates.h">

</file>

<file path="src/nvim/buffer.c">
} BufFreeFlags;
⋮----
static void trigger_undo_ftplugin(buf_T *buf, win_T *win)
⋮----
int calc_percentage(int64_t part, int64_t whole)
⋮----
int get_highest_fnum(void)
⋮----
static int read_buffer(bool read_stdin, exarg_T *eap, int flags)
⋮----
bool buf_ensure_loaded(buf_T *buf)
⋮----
int open_buffer(bool read_stdin, exarg_T *eap, int flags_arg)
⋮----
void set_bufref(bufref_T *bufref, buf_T *buf)
⋮----
bool bufref_valid(bufref_T *bufref)
⋮----
bool buf_valid(buf_T *buf)
⋮----
static bool can_unload_buffer(buf_T *buf)
⋮----
void buf_close_terminal(buf_T *buf)
⋮----
bool close_buffer(win_T *win, buf_T *buf, int action, bool abort_if_last, bool ignore_abort,
⋮----
void buf_clear_file(buf_T *buf)
⋮----
void buf_clear(void)
⋮----
... (216 lines truncated)
</file>

<file path="src/nvim/buffer.h">
enum getf_values {
⋮----
enum getf_retvalues {
⋮----
enum bln_values {
⋮----
enum dobuf_action_values {
⋮----
enum dobuf_start_values {
⋮----
enum dobuf_flags_value {
⋮----
enum bfa_values {
⋮----
static inline varnumber_T buf_get_changedtick(const buf_T *const buf)
⋮----
static inline uint32_t buf_meta_total(const buf_T *b, MetaIndex m)
</file>

<file path="src/nvim/bufwrite.c">
} Error_T;
⋮----
struct bw_info {
⋮----
static bool ucs2bytes(unsigned c, char **pp, int flags)
⋮----
static int buf_write_convert_with_iconv(struct bw_info *ip, char **bufp, int *lenp)
⋮----
static int buf_write_convert(struct bw_info *ip, char **bufp, int *lenp)
⋮----
static int buf_write_bytes(struct bw_info *ip)
⋮----
static int check_mtime(buf_T *buf, FileInfo *file_info)
⋮----
static int make_bom(char *buf_in, char *name)
⋮----
static int buf_write_do_autocmds(buf_T *buf, char **fnamep, char **sfnamep, char **ffnamep,
⋮----
static void buf_write_do_post_autocmds(buf_T *buf, char *fname, exarg_T *eap, bool append,
⋮----
static inline Error_T set_err_num(const char *num, const char *msg)
⋮----
static inline Error_T set_err(const char *msg)
⋮----
static inline Error_T set_err_arg(const char *msg, int arg)
⋮----
static void emit_err(Error_T *e, char *msg_id)
⋮----
static int get_fileinfo_os(char *fname, FileInfo *file_info_old, bool overwriting, int *perm,
⋮----
... (8 lines truncated)
</file>

<file path="src/nvim/bufwrite.h">

</file>

<file path="src/nvim/change.c">
void change_warning(buf_T *buf, int col)
⋮----
void changed(buf_T *buf)
⋮----
void changed_internal(buf_T *buf)
⋮----
static void changed_lines_invalidate_win(win_T *wp, linenr_T lnum, colnr_T col, linenr_T lnume,
⋮----
void changed_lines_invalidate_buf(buf_T *buf, linenr_T lnum, colnr_T col, linenr_T lnume,
⋮----
static void changed_common(buf_T *buf, linenr_T lnum, colnr_T col, linenr_T lnume, linenr_T xtra)
⋮----
void changed_bytes(linenr_T lnum, colnr_T col)
⋮----
void inserted_bytes(linenr_T lnum, colnr_T start_col, int old_col, int new_col)
⋮----
void appended_lines_buf(buf_T *buf, linenr_T lnum, linenr_T count)
⋮----
void appended_lines(linenr_T lnum, linenr_T count)
⋮----
void appended_lines_mark(linenr_T lnum, int count)
⋮----
void deleted_lines_buf(buf_T *buf, linenr_T lnum, linenr_T count)
⋮----
void deleted_lines(linenr_T lnum, linenr_T count)
⋮----
void deleted_lines_mark(linenr_T lnum, int count)
⋮----
void changed_lines_redraw_buf(buf_T *buf, linenr_T lnum, linenr_T lnume, linenr_T xtra)
⋮----
... (231 lines truncated)
</file>

<file path="src/nvim/change.h">

</file>

<file path="src/nvim/channel_defs.h">
} ChannelStreamType;
⋮----
} ChannelPart;
⋮----
} ChannelStdinMode;
⋮----
} StdioPair;
⋮----
} StderrState;
⋮----
} InternalState;
⋮----
} CallbackReader;
</file>

<file path="src/nvim/channel.c">
void channel_teardown(void)
⋮----
void channel_free_all_mem(void)
⋮----
bool channel_close(uint64_t id, ChannelPart part, const char **error)
⋮----
void channel_init(void)
⋮----
Channel *channel_alloc(ChannelStreamType type)
⋮----
void channel_create_event(Channel *chan, const char *ext_source)
⋮----
void channel_incref(Channel *chan)
⋮----
void channel_decref(Channel *chan)
⋮----
void callback_reader_free(CallbackReader *reader)
⋮----
void callback_reader_start(CallbackReader *reader, const char *type)
⋮----
static void channel_destroy(Channel *chan)
⋮----
static void free_channel_event(void **argv)
⋮----
static void channel_destroy_early(Channel *chan)
⋮----
static void close_cb(Stream *stream, void *data)
⋮----
Channel *channel_job_start(char **argv, const char *exepath, CallbackReader on_stdout,
⋮----
... (77 lines truncated)
</file>

<file path="src/nvim/channel.h">
struct Channel {
⋮----
static inline bool callback_reader_set(CallbackReader reader)
⋮----
EXTERN PMap(uint64_t) channels INIT( = MAP_INIT);
⋮----
EXTERN Callback on_print INIT( = CALLBACK_INIT);
⋮----
static inline Channel *find_channel(uint64_t id)
⋮----
static inline Stream *channel_instream(Channel *chan)
⋮----
static inline RStream *channel_outstream(Channel *chan)
</file>

<file path="src/nvim/charset.c">
int buf_init_isk_chartab(buf_T *buf)
⋮----
int init_isf_chartab(void)
⋮----
int init_isi_chartab(void)
⋮----
int check_isopt(char *var)
⋮----
int parse_isopt(const char *var, uint64_t *chartab)
⋮----
void trans_characters(char *buf, int bufsize)
⋮----
size_t transstr_len(const char *const s, bool untab)
⋮----
size_t transstr_buf(const char *const s, const ssize_t slen, char *const buf, const size_t buflen,
⋮----
char *transstr(const char *const s, bool untab)
⋮----
size_t kv_transstr(StringBuilder *str, const char *const s, bool untab)
⋮----
char *str_foldcase(char *str, int orglen, char *buf, int buflen)
⋮----
char *transchar(int c)
⋮----
char *transchar_buf(const buf_T *buf, int c)
⋮----
char *transchar_byte(const int c)
⋮----
char *transchar_byte_buf(const buf_T *buf, const int c)
⋮----
... (88 lines truncated)
</file>

<file path="src/nvim/charset.h">
} ChStr2NrFlags;
⋮----
static inline bool vim_isbreak(int c)
</file>

<file path="src/nvim/clipboard.c">
yankreg_T *adjust_clipboard_name(int *name, bool quiet, bool writing)
⋮----
bool get_clipboard(int name, yankreg_T **target, bool quiet)
⋮----
// a known-to-be charwise yank might have a final linebreak
// but otherwise there is no line after the final newline
⋮----
void set_clipboard(int name, yankreg_T *reg)
⋮----
void start_batch_changes(void)
⋮----
void end_batch_changes(void)
</file>

<file path="src/nvim/clipboard.h">

</file>

<file path="src/nvim/cmdexpand_defs.h">
} xp_prefix_T;
⋮----
} expand_T;
</file>

<file path="src/nvim/cmdexpand.c">
static bool cmdline_fuzzy_completion_supported(const expand_T *const xp)
⋮----
bool cmdline_fuzzy_complete(const char *const fuzzystr)
⋮----
static int sort_func_compare(const void *s1, const void *s2)
⋮----
static void wildescape(expand_T *xp, const char *str, int numfiles, char **files)
⋮----
// If the first file starts with a '+' escape it.  Otherwise it
// could be seen as "+cmd".
⋮----
// Insert a backslash before characters in a tag name that
// would terminate the ":tag" command.
⋮----
/// Escape special characters in the cmdline completion matches.
static void ExpandEscape(expand_T *xp, char *str, int numfiles, char **files, int options)
⋮----
// May change home directory back to "~"
⋮----
/// Return FAIL if this is not an appropriate context in which to do
/// completion of anything, return OK if it is (even if there are no matches).
/// For the caller, this means that the character is just passed through like a
/// normal character (instead of being expanded).  This allows :s/^I^D etc.
///
/// @param options  extra options for ExpandOne()
/// @param escape  if true, escape the returned matches
int nextwild(expand_T *xp, int type, int options, bool escape)
⋮----
// Expand commands typed in input() function
⋮----
... (438 lines truncated)
</file>

<file path="src/nvim/cmdexpand.h">

</file>

<file path="src/nvim/cmdhist.c">
int get_hislen(void)
⋮----
histentry_T *get_histentry(int hist_type)
⋮----
void set_histentry(int hist_type, histentry_T *entry)
⋮----
int *get_hisidx(int hist_type)
⋮----
int *get_hisnum(int hist_type)
⋮----
HistoryType hist_char2type(const int c)
⋮----
char *get_history_arg(expand_T *xp, int idx)
⋮----
void init_history(void)
⋮----
static inline void hist_free_entry(histentry_T *hisptr)
⋮----
static inline void clear_hist_entry(histentry_T *hisptr)
⋮----
static int in_history(int type, const char *str, int move_to_front, int sep)
⋮----
static HistoryType get_histtype(const char *const name, const size_t len, const bool return_default)
⋮----
void add_to_history(int histype, const char *new_entry, size_t new_entrylen, bool in_map, int sep)
⋮----
static int get_history_idx(int histype)
⋮----
static int calc_hist_idx(int histype, int num)
⋮----
... (22 lines truncated)
</file>

<file path="src/nvim/cmdhist.h">
} HistoryType;
⋮----
} histentry_T;
</file>

<file path="src/nvim/context_defs.h">
} Context;
typedef kvec_t(Context) ContextVec;
⋮----
} CtxStateFlags;
⋮----
} CtxLoadFlags;
⋮----
} CtxWin;
⋮----
} CtxSwitchFlags;
⋮----
} CtxSwitch;
</file>

<file path="src/nvim/context.c">
static uint32_t ctx_marks_ns(void)
⋮----
static void ctx_positions(Context *ctx, CtxStateFlags flags, pos_T *pos[6])
⋮----
void ctx_free(Context *ctx)
⋮----
void ctx_save(Context *ctx, const CtxStateFlags flags)
⋮----
void ctx_load(Context *ctx, const CtxStateFlags flags, const CtxLoadFlags loadflags)
⋮----
static inline String array_to_string(Array array, Error *err)
⋮----
Dict ctx_to_dict(Context *ctx, Arena *arena)
⋮----
CtxStateFlags ctx_from_dict(Dict dict, Context *ctx, Error *err)
⋮----
static void ctx_win_dirs_save(CtxSwitch *cs, win_T *cw_win, buf_T *buf)
⋮----
static void ctx_localdirs_restore(CtxSwitch *cs, win_T *cwp, tabpage_T *tp, bool persist)
⋮----
static void ctx_dirs_save(CtxSwitch *cs, win_T *wp, tabpage_T *tp, buf_T *buf)
⋮----
static void ctx_dirs_restore(CtxSwitch *cs)
⋮----
void ctx_did_chdir(void)
⋮----
bool is_ctx_win(win_T *win)
⋮----
static win_T *ctx_win_prep(CtxSwitch *cs, buf_T *buf)
⋮----
... (10 lines truncated)
</file>

<file path="src/nvim/context.h">
EXTERN kvec_t(CtxWin) ctx_win_vec INIT( = KV_INITIAL_VALUE);
</file>

<file path="src/nvim/cursor_shape.c">
Array mode_style_array(Arena *arena)
⋮----
const char *parse_shape_opt(int what)
⋮----
int cursor_mode_str2int(const char *mode)
⋮----
bool cursor_mode_uses_syn_id(int syn_id)
⋮----
int cursor_get_mode_idx(void)
⋮----
static void clear_shape_table(void)
</file>

<file path="src/nvim/cursor_shape.h">
} ModeShape;
⋮----
} CursorShape;
⋮----
} cursorentry_T;
</file>

<file path="src/nvim/cursor.c">
int getviscol(void)
⋮----
int getviscol2(colnr_T col, colnr_T coladd)
⋮----
int coladvance_force(colnr_T wcol)
⋮----
int coladvance(win_T *wp, colnr_T wcol)
⋮----
static int coladvance2(win_T *wp, pos_T *pos, bool addspaces, bool finetune, colnr_T wcol_arg)
⋮----
int getvpos(win_T *wp, pos_T *pos, colnr_T wcol)
⋮----
int inc_cursor(void)
⋮----
int dec_cursor(void)
⋮----
linenr_T get_cursor_rel_lnum(win_T *wp, linenr_T lnum)
⋮----
void check_pos(buf_T *buf, pos_T *pos)
⋮----
void check_cursor_lnum(win_T *win)
⋮----
void check_cursor_col(win_T *win)
⋮----
void check_cursor(win_T *wp)
⋮----
void check_visual_pos(void)
⋮----
void adjust_cursor_col(void)
⋮----
... (16 lines truncated)
</file>

<file path="src/nvim/cursor.h">

</file>

<file path="src/nvim/debugger.c">
struct debuggy {
⋮----
void do_debug(char *cmd)
⋮----
static int get_maxbacktrace_level(char *sname)
⋮----
static void do_setdebugtracelevel(char *arg)
⋮----
static void do_checkbacktracelevel(void)
⋮----
static void do_showbacktrace(char *cmd)
⋮----
void ex_debug(exarg_T *eap)
⋮----
void dbg_check_breakpoint(exarg_T *eap)
⋮----
/// Go to debug mode if skipped by dbg_check_breakpoint() because eap->skip was
/// set.
///
/// @return true when the debug mode is entered this time.
bool dbg_check_skipped(exarg_T *eap)
⋮----
// Save the value of got_int and reset it.  We don't want a previous
// interruption cause flushing the input buffer.
⋮----
// eap->skip is true
⋮----
static int last_breakp = 0;     // nr of last defined breakpoint
⋮----
// Profiling uses file and func names similar to breakpoints.
... (25 lines truncated)
</file>

<file path="src/nvim/debugger.h">

</file>

<file path="src/nvim/decoration_defs.h">
} VirtTextChunk;
⋮----
typedef kvec_t(VirtTextChunk) VirtText;
⋮----
} VirtTextPos;
⋮----
} VirtLineOverflow;
⋮----
typedef kvec_t(struct virt_line { VirtText line; int flags; VirtLineOverflow overflow; }) VirtLines;
⋮----
typedef uint16_t DecorPriority;
typedef uint32_t DecorPriorityInternal;
⋮----
} HlMode;
⋮----
} DecorHighlightInline;
⋮----
} DecorSignHighlight;
⋮----
typedef struct DecorVirtText DecorVirtText;
struct DecorVirtText {
⋮----
} DecorExt;
⋮----
} DecorInlineData;
⋮----
} DecorInline;
⋮----
} DecorProvider;
</file>

<file path="src/nvim/decoration_provider.c">
static void decor_provider_error(DecorProvider *provider, const char *name, const char *msg)
⋮----
static bool decor_provider_invoke(int provider_idx, const char *name, LuaRef ref, Array args,
⋮----
void decor_providers_invoke_spell(win_T *wp, int start_row, int start_col, int end_row, int end_col)
⋮----
bool decor_providers_invoke_conceal_line(win_T *wp, int row)
⋮----
void decor_providers_start(void)
⋮----
void decor_providers_invoke_win(win_T *wp)
⋮----
void decor_providers_invoke_line(win_T *wp, int row)
⋮----
void decor_providers_invoke_range(win_T *wp, int start_row, int start_col, int end_row, int end_col)
⋮----
void decor_providers_invoke_buf(buf_T *buf)
⋮----
void decor_providers_invoke_end(void)
⋮----
void decor_provider_invalidate_hl(void)
⋮----
DecorProvider *get_decor_provider(NS ns_id, bool force)
⋮----
void decor_provider_clear(DecorProvider *p)
⋮----
void decor_free_all_mem(void)
</file>

<file path="src/nvim/decoration_provider.h">

</file>

<file path="src/nvim/decoration.c">
void bufhl_add_hl_pos_offset(buf_T *buf, int src_id, int hl_id, lpos_T pos_start, lpos_T pos_end,
⋮----
void decor_redraw(buf_T *buf, int row1, int row2, int col1, DecorInline decor)
⋮----
void decor_redraw_sh(buf_T *buf, int row1, int row2, DecorSignHighlight sh)
⋮----
uint32_t decor_put_sh(DecorSignHighlight item)
⋮----
DecorVirtText *decor_put_vt(DecorVirtText vt, DecorVirtText *next)
⋮----
DecorSignHighlight decor_sh_from_inline(DecorHighlightInline item)
⋮----
void buf_put_decor(buf_T *buf, DecorInline decor, int row, int row2)
⋮----
static void may_force_numberwidth_recompute(buf_T *buf, bool unplace)
⋮----
void buf_put_decor_sh(buf_T *buf, DecorSignHighlight *sh, int row1, int row2)
⋮----
void buf_decor_remove(buf_T *buf, int row1, int row2, int col1, DecorInline decor, bool free)
⋮----
void buf_remove_decor_sh(buf_T *buf, int row1, int row2, DecorSignHighlight *sh)
⋮----
void decor_free(DecorInline decor)
⋮----
static void decor_free_inner(DecorVirtText *vt, uint32_t first_idx)
⋮----
void decor_state_invalidate(buf_T *buf)
⋮----
void decor_check_to_be_deleted(void)
⋮----
... (68 lines truncated)
</file>

<file path="src/nvim/decoration.h">
} DecorRangeKindEnum;
⋮----
typedef uint8_t DecorRangeKind;
⋮----
} DecorRange;
⋮----
} DecorRangeSlot;
⋮----
} DecorState;
⋮----
EXTERN DecorState decor_state INIT( = { 0 });
⋮----
EXTERN kvec_t(DecorSignHighlight) decor_items INIT( = KV_INITIAL_VALUE);
⋮----
static inline int decor_redraw_col(win_T *wp, int col, int win_col, bool hidden, DecorState *state,
</file>

<file path="src/nvim/dialog.c">
int ask_yesno(const char *const str)
⋮----
int prompt_for_input(char *prompt, int hl_id, bool one_key, bool *mouse_used)
⋮----
int do_dialog(int type, const char *title, const char *message, const char *buttons, int dfltbutton,
⋮----
static int copy_char(const char *from, char *to, bool lowercase)
⋮----
static char *console_dialog_alloc(const char *message, const char *buttons, bool has_hotkey[])
⋮----
static char *msg_show_console_dialog(const char *message, const char *buttons, int dfltbutton)
⋮----
static void copy_confirm_hotkeys(const char *buttons, int default_button_idx,
⋮----
int vim_dialog_yesno(int type, char *title, char *message, int dflt)
⋮----
int vim_dialog_yesnocancel(int type, char *title, char *message, int dflt)
⋮----
int vim_dialog_yesnoallcancel(int type, char *title, char *message, int dflt)
</file>

<file path="src/nvim/dialog.h">

</file>

<file path="src/nvim/diff.c">
} diffin_T;
⋮----
} diffout_T;
⋮----
} diffhunk_T;
⋮----
} diffio_T;
⋮----
} diffstyle_T;
⋮----
static void clear_diffblock(diff_T *dp)
⋮----
static diff_T *diff_scan_start(tabpage_T *tp, int idx, linenr_T lnum)
⋮----
static void diff_scan_remember(tabpage_T *tp, int idx, linenr_T lnum, diff_T *dp)
⋮----
void diff_buf_delete(buf_T *buf)
⋮----
void diff_buf_adjust(win_T *win)
⋮----
void diff_buf_add(buf_T *buf)
⋮----
static void diff_buf_clear(void)
⋮----
static int diff_buf_idx(buf_T *buf, tabpage_T *tp)
⋮----
void diff_invalidate(buf_T *buf)
⋮----
void diff_mark_adjust(buf_T *buf, linenr_T line1, linenr_T line2, linenr_T amount,
⋮----
... (161 lines truncated)
</file>

<file path="src/nvim/diff.h">
EXTERN int diff_context INIT( = 6);
EXTERN int diff_foldcolumn INIT( = 2);
EXTERN bool diff_need_scrollbind INIT( = false);
⋮----
EXTERN bool need_diff_redraw INIT( = false);
</file>

<file path="src/nvim/digraph.c">
typedef int result_T;
⋮----
} digr_T;
⋮----
{ '/', '\\', 0xd7 },  // × Vim 5.x compatible
⋮----
int do_digraph(int c)
⋮----
char *get_digraph_for_char(int val_arg)
⋮----
int get_digraph(bool cmdline)
⋮----
static int getexactdigraph(int char1, int char2, bool meta_char)
⋮----
int digraph_get(int char1, int char2, bool meta_char)
⋮----
static void registerdigraph(int char1, int char2, int n)
⋮----
bool check_digraph_chars_valid(int char1, int char2)
⋮----
void putdigraph(char *str)
⋮----
static void digraph_header(const char *msg)
⋮----
void listdigraphs(bool use_headers)
⋮----
static void digraph_getlist_appendpair(const digr_T *dp, list_T *l)
⋮----
void digraph_getlist_common(bool list_all, typval_T *rettv)
⋮----
... (28 lines truncated)
</file>

<file path="src/nvim/digraph.h">

</file>

<file path="src/nvim/drawline.c">
} winlinevars_T;
⋮----
static char *get_extra_buf(size_t size)
⋮----
void drawline_free_all_mem(void)
⋮----
static schar_T get_lcs_ext(win_T *wp)
⋮----
static void advance_color_col(winlinevars_T *wlv, int vcol)
⋮----
static void margin_columns_win(win_T *wp, int *left_col, int *right_col)
⋮----
static int line_putchar(buf_T *buf, const char **pp, schar_T *dest, int maxcells, int vcol)
⋮----
static void draw_virt_text(win_T *wp, buf_T *buf, int col_off, int *end_col, int win_row)
⋮----
static int draw_virt_text_item(buf_T *buf, int col, VirtText vt, HlMode hl_mode, int max_col,
⋮----
// extending last highlight till the end of line
⋮----
// Skip cells in the text.
⋮----
// If a double-width char or TAB doesn't fit, pad with spaces.
⋮----
// When overwriting the right half of a double-width char, clear the left half.
⋮----
// Clear the right half as well for the assertion in line_putchar().
⋮----
// TODO(bfredl): integrate with grid.c linebuf code? madness?
static void draw_col_buf(win_T *wp, winlinevars_T *wlv, const char *text, size_t len, int attr,
... (87 lines truncated)
</file>

<file path="src/nvim/drawline.h">
} WinExtmark;
EXTERN kvec_t(WinExtmark) win_extmark_arr INIT( = KV_INITIAL_VALUE);
</file>

<file path="src/nvim/drawscreen.c">
} WindowCorner;
⋮----
void conceal_check_cursor_line(void)
⋮----
bool default_grid_alloc(void)
⋮----
void screenclear(void)
⋮----
static bool cmdline_number_prompt(void)
⋮----
void screen_resize(int width, int height)
⋮----
void check_screensize(void)
⋮----
bool redrawing(void)
⋮----
int update_screen(void)
⋮----
void start_search_hl(void)
⋮----
void end_search_hl(void)
⋮----
void setcursor(void)
⋮----
void setcursor_mayforce(win_T *wp, bool force)
⋮----
bool redraw_custom_title_later(void)
⋮----
void show_cursor_info_later(bool force)
⋮----
... (76 lines truncated)
</file>

<file path="src/nvim/drawscreen.h">
EXTERN bool updating_screen INIT( = false);
⋮----
EXTERN bool redraw_not_allowed INIT( = false);
⋮----
EXTERN match_T screen_search_hl INIT( = { 0 });
⋮----
EXTERN linenr_T search_hl_has_cursor_lnum INIT( = 0);
</file>

<file path="src/nvim/errors.h">
EXTERN const char e_abort[] INIT(= N_("E470: Command aborted"));
EXTERN const char e_afterinit[] INIT(= N_("E905: Cannot set this option after startup"));
EXTERN const char e_api_spawn_failed[] INIT(= N_("E903: Could not spawn API job"));
EXTERN const char e_argreq[] INIT(= N_("E471: Argument required"));
EXTERN const char e_backslash[] INIT(= N_("E10: \\ should be followed by /, ? or &"));
EXTERN const char e_curdir[] INIT(= N_("E12: Command not allowed in secure mode in current dir or tag search"));
EXTERN const char e_invalid_buffer_name_str[] INIT(= N_("E158: Invalid buffer name: %s"));
EXTERN const char e_command_too_recursive[] INIT(= N_("E169: Command too recursive"));
EXTERN const char e_buffer_nr_invalid_buffer_number[] INIT(= N_("E680: <buffer=%d>: invalid buffer number"));
EXTERN const char e_buffer_is_not_loaded[] INIT(= N_("E681: Buffer is not loaded"));
EXTERN const char e_endif[] INIT(= N_("E171: Missing :endif"));
EXTERN const char e_endtry[] INIT(= N_("E600: Missing :endtry"));
EXTERN const char e_endwhile[] INIT(= N_("E170: Missing :endwhile"));
EXTERN const char e_endfor[] INIT(= N_("E170: Missing :endfor"));
EXTERN const char e_while[] INIT(= N_("E588: :endwhile without :while"));
EXTERN const char e_for[] INIT(= N_("E588: :endfor without :for"));
EXTERN const char e_exists[] INIT(= N_("E13: File exists (add ! to override)"));
EXTERN const char e_failed[] INIT(= N_("E472: Command failed"));
EXTERN const char e_intern2[] INIT(= N_("E685: Internal error: %s"));
EXTERN const char e_interr[] INIT(= N_("Interrupted"));
EXTERN const char e_invarg[] INIT(= N_("E474: Invalid argument"));
EXTERN const char e_invarg2[] INIT(= N_("E475: Invalid argument: %s"));
EXTERN const char e_invargval[] INIT(= N_("E475: Invalid value for argument %s"));
EXTERN const char e_invargNval[] INIT(= N_("E475: Invalid value for argument %s: %s"));
EXTERN const char e_duparg2[] INIT(= N_("E983: Duplicate argument: %s"));
EXTERN const char e_invexpr2[] INIT(= N_("E15: Invalid expression: \"%s\""));
EXTERN const char e_invrange[] INIT(= N_("E16: Invalid range"));
EXTERN const char e_internal_error_in_regexp[] INIT(= N_("E473: Internal error in regexp"));
EXTERN const char e_invcmd[] INIT(= N_("E476: Invalid command"));
EXTERN const char e_isadir2[] INIT(= N_("E17: \"%s\" is a directory"));
... (200 lines truncated)
</file>

<file path="src/nvim/eval_defs.h">
} MessagePackType;
⋮----
} evalarg_T;
⋮----
} VimVarIndex;
</file>

<file path="src/nvim/eval.c">
} forinfo_T;
⋮----
} glv_status_T;
⋮----
dict_T *get_v_event(save_v_event_T *sve)
⋮----
void restore_v_event(dict_T *v_event, save_v_event_T *sve)
⋮----
varnumber_T num_divide(varnumber_T n1, varnumber_T n2)
⋮----
varnumber_T num_modulus(varnumber_T n1, varnumber_T n2)
⋮----
void eval_init(void)
⋮----
void eval_clear(void)
⋮----
void fill_evalarg_from_eap(evalarg_T *evalarg, exarg_T *eap, bool skip)
⋮----
bool eval_to_bool(char *arg, bool *error, exarg_T *eap, const bool skip,
⋮----
static int eval1_emsg(char **arg, typval_T *rettv, exarg_T *eap)
⋮----
bool eval_expr_valid_arg(const typval_T *const tv)
⋮----
static int eval_expr_partial(const typval_T *expr, typval_T *argv, int argc, typval_T *rettv)
⋮----
static int eval_expr_func(const typval_T *expr, typval_T *argv, int argc, typval_T *rettv)
⋮----
static int eval_expr_string(const typval_T *expr, typval_T *rettv)
⋮----
... (352 lines truncated)
</file>

<file path="src/nvim/eval.h">
} lval_T;
⋮----
} var_flavour_T;
⋮----
} save_v_event_T;
⋮----
} TransFunctionNameFlags;
⋮----
} GetLvalFlags;
⋮----
} timer_T;
⋮----
} exprtype_T;
⋮----
EXTERN evalarg_T EVALARG_EVALUATE INIT( = { EVAL_EVALUATE, NULL, NULL, NULL });
</file>

<file path="src/nvim/eval.lua">
-- Defines all "vimfn" (builtin/"eval"/"Vimscript") functions.
--
--- @class vim.EvalFn
--- @field name? string
--- @field args? integer|integer[] (default: 0) Number of arguments, list with maximum and minimum number of arguments or list with a minimum number of arguments only.
--- @field base? integer For methods: the argument to use as the base argument (1-indexed): base->method(). Defaults to BASE_NONE (function cannot be used as a method).
--- @field func? string (default: "f_{funcname}") C function which implements the vimfn.
--- @field func_float? string Floating-point C function. Sets func="float_op_wrapper".
--- @field func_lua? string Function name in `vim._core.vimfn.*` (e.g. "f_hostname"). Sets func="lua_wrapper".
--- @field fast? boolean Function can run in |api-fast| events. Defaults to false.
--- @field deprecated? true
--- @field returns? string|false
--- @field returns_desc? string
--- @field generics? string[] Used to write `---@generic` annotations over a function.
--- @field signature? string
--- @field desc? string
--- @field params [string, string, string?][] Each entry is `{name, type, desc?}`; `desc` is only present in API-meta entries.
--- @field notes? string[]
--- @field see? string[]
---
--- Recommended alternatives if calling from Lua.
--- `false` means there is no useful Lua replacement to suggest.
--- @field see_lua? string[]|false
--- @field lua? false Do not render type information
--- @field tags? string[] Extra tags
--- @field data? string Used by gen_eval.lua

-- Usable with the base key: use the last function argument as the method base.
-- Value is from funcs.h file. "BASE_" prefix is omitted.
-- local LAST = "BASE_LAST" (currently unused after port of v8.2.1168)
... (14190 lines truncated)
</file>

<file path="src/nvim/ex_cmds_defs.h">
} cmd_addr_T;
⋮----
typedef struct exarg exarg_T;
⋮----
} CommandDefinition;
⋮----
struct exarg {
⋮----
} cmdmod_T;
⋮----
} SubReplacementString;
</file>

<file path="src/nvim/ex_cmds.c">
} SubIgnoreType;
⋮----
} subflags_T;
⋮----
} SubResult;
⋮----
} PreviewLines;
⋮----
void do_ascii(exarg_T *eap)
⋮----
void ex_align(exarg_T *eap)
⋮----
static int linelen(int *has_tab)
⋮----
} sorti_T;
⋮----
static int string_compare(const void *s1, const void *s2) FUNC_ATTR_NONNULL_ALL
⋮----
static int sort_compare(const void *s1, const void *s2)
⋮----
void ex_sort(exarg_T *eap)
⋮----
void ex_uniq(exarg_T *eap)
⋮----
int do_move(linenr_T line1, linenr_T line2, linenr_T dest)
⋮----
void ex_copy(linenr_T line1, linenr_T line2, linenr_T n)
⋮----
void free_prev_shellcmd(void)
⋮----
... (248 lines truncated)
</file>

<file path="src/nvim/ex_cmds.h">

</file>

<file path="src/nvim/ex_cmds.lua">
local bit = require 'bit'

local M = {}

-- Description of the values below is contained in ex_cmds_defs.h file.
-- "EX_" prefix is omitted.
local RANGE = 0x001
local BANG = 0x002
local EXTRA = 0x004
local XFILE = 0x008
local NOSPC = 0x010
local DFLALL = 0x020
local WHOLEFOLD = 0x040
local NEEDARG = 0x080
local TRLBAR = 0x100
local REGSTR = 0x200
local COUNT = 0x400
local NOTRLCOM = 0x800
local ZEROR = 0x1000
local CTRLV = 0x2000
local CMDARG = 0x4000
local BUFNAME = 0x8000
local BUFUNL = 0x10000
local ARGOPT = 0x20000
local SBOXOK = 0x40000
local BUFLOCK_OK = 0x80000 -- Allowed when curbuf is `b_ro_locked`. Legacy name: CMDWIN. Implies LOCK_OK.
local MODIFY = 0x100000
local FLAGS = 0x200000
local LOCK_OK = 0x1000000 -- Allowed when |textlock| is set.
local PREVIEW = 0x8000000
... (3430 lines truncated)
</file>

<file path="src/nvim/ex_cmds2.c">
void ex_ruby(exarg_T *eap)
⋮----
void ex_rubyfile(exarg_T *eap)
⋮----
void ex_rubydo(exarg_T *eap)
⋮----
void ex_python3(exarg_T *eap)
⋮----
void ex_py3file(exarg_T *eap)
⋮----
void ex_pydo3(exarg_T *eap)
⋮----
void ex_perl(exarg_T *eap)
⋮----
void ex_perlfile(exarg_T *eap)
⋮----
void ex_perldo(exarg_T *eap)
⋮----
int autowrite(buf_T *buf, bool forceit)
⋮----
void autowrite_all(void)
⋮----
bool check_changed(buf_T *buf, int flags)
⋮----
void dialog_changed(buf_T *buf, bool checkall)
⋮----
bool dialog_close_terminal(buf_T *buf)
⋮----
bool can_abandon(buf_T *buf, bool forceit)
⋮----
... (22 lines truncated)
</file>

<file path="src/nvim/ex_cmds2.h">

</file>

<file path="src/nvim/ex_docmd.c">
} wcmd_T;
⋮----
struct loop_cookie {
⋮----
struct dbg_stuff {
⋮----
static void save_dbg_stuff(struct dbg_stuff *dsp)
⋮----
static void restore_dbg_stuff(struct dbg_stuff *dsp)
⋮----
static bool is_other_file(int fnum, char *ffname)
⋮----
static void msg_verbose_cmd(linenr_T lnum, char *cmd)
⋮----
static int do_cmdline_start(void)
⋮----
static void do_cmdline_end(void)
⋮----
int do_cmdline_cmd(const char *cmd)
⋮----
int do_cmdline(char *cmdline, LineGetter fgetline, void *cookie, int flags)
⋮----
void handle_did_throw(void)
⋮----
static char *get_loop_line(int c, void *cookie, int indent, bool do_concat)
⋮----
static void store_loop_line(garray_T *gap, char *line)
⋮----
bool getline_equal(LineGetter fgetline, void *cookie, LineGetter func)
⋮----
... (550 lines truncated)
</file>

<file path="src/nvim/ex_docmd.h">
} save_state_T;
</file>

<file path="src/nvim/ex_eval_defs.h">
typedef struct eslist_elem eslist_T;
struct eslist_elem {
⋮----
} cstack_T;
⋮----
typedef struct msglist msglist_T;
struct msglist {
⋮----
} except_type_T;
⋮----
typedef struct vim_exception except_T;
struct vim_exception {
⋮----
typedef struct cleanup_stuff cleanup_T;
struct cleanup_stuff {
⋮----
typedef struct exception_state_S exception_state_T;
struct exception_state_S {
</file>

<file path="src/nvim/ex_eval.c">
static void discard_pending_return(typval_T *p)
⋮----
bool aborting(void)
⋮----
void update_force_abort(void)
⋮----
bool should_abort(int retcode)
⋮----
bool aborted_in_try(void)
⋮----
bool cause_errthrow(const char *mesg, bool multiline, bool concat, bool severe, bool *ignore)
⋮----
static void free_msglist(msglist_T *l)
⋮----
void free_global_msglist(void)
⋮----
void do_errthrow(cstack_T *cstack, char *cmdname)
⋮----
bool do_intthrow(cstack_T *cstack)
⋮----
char *get_exception_string(void *value, except_type_T type, char *cmdname, bool *should_free)
⋮----
static int throw_exception(void *value, except_type_T type, char *cmdname)
⋮----
msg_silent = false;               // display messages
⋮----
msg_scroll = true;            // always scroll up, don't overwrite
⋮----
static void discard_exception(except_T *excp, bool was_finished)
⋮----
... (62 lines truncated)
</file>

<file path="src/nvim/ex_eval.h">

</file>

<file path="src/nvim/ex_getln_defs.h">
} CmdlineColorChunk;
⋮----
typedef kvec_t(CmdlineColorChunk) CmdlineColors;
⋮----
} ColoredCmdline;
⋮----
} CmdRedraw;
⋮----
typedef struct cmdline_info CmdlineInfo;
struct cmdline_info {
</file>

<file path="src/nvim/ex_getln.c">
} incsearch_state_T;
⋮----
} CommandLineState;
⋮----
} CpBufInfo;
⋮----
} CpWinInfo;
⋮----
} CpInfo;
⋮----
static void trigger_cmd_autocmd(int typechar, event_T evt)
⋮----
static void init_incsearch_state(incsearch_state_T *s)
⋮----
static void set_search_match(pos_T *t)
⋮----
bool parse_pattern_and_range(pos_T *incsearch_start, int *search_delim, int *skiplen, int *patlen,
⋮----
static bool do_incsearch_highlighting(int firstc, int *search_delim, incsearch_state_T *is_state,
⋮----
static void may_do_incsearch_highlighting(int firstc, int count, incsearch_state_T *s)
⋮----
static int may_add_char_to_search(int firstc, int *c, incsearch_state_T *s)
⋮----
// add any composing characters
⋮----
static void finish_incsearch_highlighting(bool gotesc, incsearch_state_T *s,
⋮----
// put the '" mark at the original position
⋮----
... (334 lines truncated)
</file>

<file path="src/nvim/ex_getln.h">

</file>

<file path="src/nvim/ex_session.c">
static int put_view_curpos(FILE *fd, const win_T *wp, char *spaces)
⋮----
static int ses_winsizes(FILE *fd, bool restore_size, win_T *tab_firstwin)
⋮----
static int ses_win_rec(FILE *fd, frame_T *fr)
⋮----
static frame_T *ses_skipframe(frame_T *fr)
⋮----
static bool ses_do_frame(const frame_T *fr)
⋮----
static int ses_do_win(win_T *wp)
⋮----
static int ses_arglist(FILE *fd, char *cmd, garray_T *gap, bool fullname, unsigned *flagp)
⋮----
static char *ses_get_fname(buf_T *buf, const unsigned *flagp)
⋮----
static int ses_fname(FILE *fd, buf_T *buf, unsigned *flagp, bool add_eol)
⋮----
static char *ses_escape_fname(char *name, unsigned *flagp)
⋮----
// Escape special characters.
⋮----
/// Write a file name to the session file.
/// Takes care of the "slash" option in 'sessionoptions' and escapes special
⋮----
static int ses_put_fname(FILE *fd, char *name, unsigned *flagp)
⋮----
static int put_view(FILE *fd, win_T *wp, tabpage_T *tp, bool add_edit, unsigned *flagp,
⋮----
// A help buffer needs some options to be set.
... (18 lines truncated)
</file>

<file path="src/nvim/ex_session.h">

</file>

<file path="src/nvim/extmark_defs.h">
typedef ptrdiff_t bcount_t;
⋮----
typedef struct undo_object ExtmarkUndoObject;
typedef kvec_t(ExtmarkUndoObject) extmark_undo_vec_t;
⋮----
} ExtmarkOp;
</file>

<file path="src/nvim/extmark.c">
static void extmark_push_savepos(buf_T *buf, uint64_t mark, int undo_row, colnr_T undo_col,
⋮----
void extmark_set(buf_T *buf, uint32_t ns_id, uint32_t *idp, int row, colnr_T col, int end_row,
⋮----
static void extmark_setraw(buf_T *buf, uint64_t mark, int row, colnr_T col, bool revive)
⋮----
bool extmark_del_id(buf_T *buf, uint32_t ns_id, uint32_t id)
⋮----
void extmark_del(buf_T *buf, MarkTreeIter *itr, MTKey key, bool restore)
⋮----
bool extmark_clear(buf_T *buf, uint32_t ns_id, int l_row, colnr_T l_col, int u_row, colnr_T u_col)
⋮----
ExtmarkInfoArray extmark_get(buf_T *buf, uint32_t ns_id, int l_row, colnr_T l_col, int u_row,
⋮----
static void push_mark(ExtmarkInfoArray *array, uint32_t ns_id, ExtmarkType type_filter, MTPair mark)
⋮----
MTPair extmark_from_id(buf_T *buf, uint32_t ns_id, uint32_t id)
⋮----
void extmark_set_pos(buf_T *buf, uint32_t ns_id, uint32_t *mark, pos_T pos, bool right_gravity,
⋮----
bool extmark_get_pos(buf_T *buf, uint32_t ns_id, uint32_t id, pos_T *pos)
⋮----
void extmark_free_all(buf_T *buf)
⋮----
void extmark_splice_delete(buf_T *buf, int l_row, colnr_T l_col, int u_row, colnr_T u_col,
⋮----
void extmark_apply_undo(ExtmarkUndoObject undo_info, bool undo)
⋮----
void extmark_adjust(buf_T *buf, linenr_T line1, linenr_T line2, linenr_T amount,
⋮----
... (8 lines truncated)
</file>

<file path="src/nvim/extmark.h">
EXTERN int curbuf_splice_pending INIT( = 0);
⋮----
typedef kvec_t(MTPair) ExtmarkInfoArray;
⋮----
} ExtmarkSplice;
⋮----
} ExtmarkMove;
⋮----
} ExtmarkSavePos;
⋮----
} UndoObjectType;
⋮----
} ExtmarkType;
⋮----
struct undo_object {
</file>

<file path="src/nvim/file_search.c">
typedef struct ff_stack {
⋮----
} ff_stack_T;
⋮----
typedef struct ff_visited {
⋮----
} ff_visited_T;
⋮----
typedef struct ff_visited_list_hdr {
⋮----
} ff_visited_list_hdr_T;
⋮----
} ff_search_ctx_T;
⋮----
void *vim_findfile_init(char *path, char *filename, size_t filenamelen, char *stopdirs, int level,
⋮----
// do not add '..' to the path and start upwards searching
⋮----
char *vim_findfile_stopdir(char *buf)
⋮----
// Overwrite the escape char.
⋮----
} else {  // if (*buf == NUL)
⋮----
/// Clean up the given search context. Can handle a NULL pointer.
void vim_findfile_cleanup(void *ctx)
⋮----
/// Find a file in a search context.
/// The search context was created with vim_findfile_init() above.
///
... (166 lines truncated)
</file>

<file path="src/nvim/file_search.h">

</file>

<file path="src/nvim/fileio.c">
static void filemess(buf_T *buf, char *name, char *s, const char *msg_id)
⋮----
void filemess_progress(buf_T *buf, char *name, const char *msg_id)
⋮----
/// Read lines from file "fname" into the buffer after line "from".
⋮----
int readfile(char *fname, char *sfname, linenr_T from, linenr_T lines_to_skip,
⋮----
msg_scroll = false;                   // overwrite the file message
⋮----
// Set linecnt now, before the "retry" caused by a wrong guess for
⋮----
fenc = "";                // binary: don't convert
⋮----
// Help files are either utf-8 or latin1.  Try utf-8 first, if this
// fails it must be latin1.
// It is needed when the first line contains non-ASCII characters.
// That is only in *.??x files.
⋮----
os_remove(tmpname);  // delete converted file
⋮----
// Conversion may be required when the encoding of the file is different
// from 'encoding' or 'encoding' is UTF-16, UCS-2 or UCS-4.
⋮----
// "ucs-bom" means we need to check the first bytes of the file
⋮----
bool is_dev_fd_file(char *fname)
⋮----
static linenr_T readfile_linenr(linenr_T linecnt, char *p, const char *endp)
⋮----
... (149 lines truncated)
</file>

<file path="src/nvim/fileio.h">

</file>

<file path="src/nvim/fold_defs.h">
} foldinfo_T;
</file>

<file path="src/nvim/fold.c">
} fold_T;
⋮----
} fline_T;
⋮----
void copyFoldingState(win_T *wp_from, win_T *wp_to)
⋮----
int hasAnyFolding(win_T *win)
⋮----
bool hasFolding(win_T *win, linenr_T lnum, linenr_T *firstp, linenr_T *lastp)
⋮----
bool hasFoldingWin(win_T *const win, const linenr_T lnum, linenr_T *const firstp,
⋮----
static int foldLevel(linenr_T lnum)
⋮----
bool lineFolded(win_T *const win, const linenr_T lnum)
⋮----
foldinfo_T fold_info(win_T *win, linenr_T lnum)
⋮----
bool foldmethodIsManual(win_T *wp)
⋮----
bool foldmethodIsIndent(win_T *wp)
⋮----
bool foldmethodIsExpr(win_T *wp)
⋮----
bool foldmethodIsMarker(win_T *wp)
⋮----
bool foldmethodIsSyntax(win_T *wp)
⋮----
bool foldmethodIsDiff(win_T *wp)
⋮----
... (140 lines truncated)
</file>

<file path="src/nvim/fold.h">
EXTERN int disable_fold_update INIT( = 0);
</file>

<file path="src/nvim/func_attr.h">

</file>

<file path="src/nvim/fuzzy.c">
typedef double score_t;
⋮----
} fuzzyItem_T;
⋮----
typedef struct match_struct match_struct;
⋮----
bool fuzzy_match(char *const str, const char *const pat_arg, const bool matchseq,
⋮----
static int fuzzy_match_item_compare(const void *const s1, const void *const s2)
⋮----
static void fuzzy_match_in_list(list_T *const l, char *const str, const bool matchseq,
⋮----
static void do_fuzzymatch(const typval_T *const argvars, typval_T *const rettv,
⋮----
void f_matchfuzzy(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_matchfuzzypos(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
static int fuzzy_match_str_compare(const void *const s1, const void *const s2)
⋮----
static void fuzzy_match_str_sort(fuzmatch_str_T *const fm, const int sz)
⋮----
static int fuzzy_match_func_compare(const void *const s1, const void *const s2)
⋮----
static void fuzzy_match_func_sort(fuzmatch_str_T *const fm, const int sz)
⋮----
int fuzzy_match_str(char *const str, const char *const pat)
⋮----
garray_T *fuzzy_match_str_with_pos(char *const str, const char *const pat)
⋮----
... (20 lines truncated)
</file>

<file path="src/nvim/fuzzy.h">
} fuzmatch_str_T;
</file>

<file path="src/nvim/garray_defs.h">
} garray_T;
</file>

<file path="src/nvim/garray.c">
void ga_clear(garray_T *gap)
⋮----
void ga_clear_strings(garray_T *gap)
⋮----
void ga_init(garray_T *gap, int itemsize, int growsize)
⋮----
void ga_set_growsize(garray_T *gap, int growsize)
⋮----
void ga_grow(garray_T *gap, int n)
⋮----
void ga_remove_duplicate_strings(garray_T *gap)
⋮----
char *ga_concat_strings(const garray_T *gap, const char *sep)
⋮----
// add some space for the (num - 1) separators
⋮----
strcpy(s, strings[nelem - 1]);  // NOLINT(runtime/printf)
⋮----
/// Concatenate a string to a growarray which contains characters.
/// When "s" is NULL does not do anything.
⋮----
void ga_concat(garray_T *gap, const char *restrict s)
⋮----
void ga_concat_len(garray_T *const gap, const char *restrict s, const size_t len)
⋮----
void ga_append(garray_T *gap, uint8_t c)
⋮----
void *ga_append_via_ptr(garray_T *gap, size_t item_size)
</file>

<file path="src/nvim/garray.h">

</file>

<file path="src/nvim/gettext_defs.h">

</file>

<file path="src/nvim/globals.h">
} g_stats INIT( = { 0, 0, 0 });
⋮----
EXTERN int Rows INIT( = DFLT_ROWS);
EXTERN int Columns INIT( = DFLT_COLS);
⋮----
EXTERN int mod_mask INIT( = 0);
⋮----
EXTERN int vgetc_mod_mask INIT( = 0);
EXTERN int vgetc_char INIT( = 0);
⋮----
EXTERN bool redraw_cmdline INIT( = false);
EXTERN bool redraw_mode INIT( = false);
EXTERN bool clear_cmdline INIT( = false);
EXTERN bool mode_displayed INIT( = false);
EXTERN int cmdline_star INIT( = 0);
EXTERN bool redrawing_cmdline INIT( = false);
EXTERN bool cmdline_was_last_drawn INIT( = false);
⋮----
EXTERN bool exec_from_reg INIT( = false);
⋮----
EXTERN colnr_T dollar_vcol INIT( = -1);
⋮----
EXTERN bool cmdmsg_rl INIT( = false);
⋮----
EXTERN bool msg_scrolled_ign INIT( = false);
⋮----
EXTERN bool msg_did_scroll INIT( = false);
⋮----
EXTERN int keep_msg_hl_id INIT( = 0);
EXTERN bool need_fileinfo INIT( = false);
... (255 lines truncated)
</file>

<file path="src/nvim/grid_defs.h">
typedef struct ScreenGrid ScreenGrid;
struct ScreenGrid {
⋮----
} GridView;
⋮----
} GridLineEvent;
</file>

<file path="src/nvim/grid.c">
ScreenGrid *grid_adjust(GridView *grid, int *row_off, int *col_off)
⋮----
schar_T schar_from_str(const char *str)
⋮----
schar_T schar_from_buf(const char *buf, size_t len)
⋮----
bool schar_cache_clear_if_full(void)
⋮----
void schar_cache_clear(void)
⋮----
bool schar_high(schar_T sc)
⋮----
size_t schar_get(char *buf_out, schar_T sc)
⋮----
size_t schar_get_adv(char **buf_out, schar_T sc)
⋮----
size_t schar_len(schar_T sc)
⋮----
int schar_cells(schar_T sc)
⋮----
static char schar_get_first_byte(schar_T sc)
⋮----
int schar_get_first_codepoint(schar_T sc)
⋮----
char schar_get_ascii(schar_T sc)
⋮----
static bool schar_in_arabic_block(schar_T sc)
⋮----
static void schar_get_first_two_codepoints(schar_T sc, int *c0, int *c1)
⋮----
... (66 lines truncated)
</file>

<file path="src/nvim/grid.h">
EXTERN ScreenGrid default_grid INIT( = SCREEN_GRID_INIT);
EXTERN GridView default_gridview INIT( = { .target = &default_grid });
⋮----
EXTERN bool resizing_screen INIT( = 0);
</file>

<file path="src/nvim/hashtab_defs.h">
typedef size_t hash_T;
⋮----
} hashitem_T;
⋮----
} hashtab_T;
</file>

<file path="src/nvim/hashtab.c">
void hash_init(hashtab_T *ht)
⋮----
void hash_clear(hashtab_T *ht)
⋮----
void hash_clear_all(hashtab_T *ht, unsigned off)
⋮----
hashitem_T *hash_find(const hashtab_T *const ht, const char *const key)
⋮----
hashitem_T *hash_find_len(const hashtab_T *const ht, const char *const key, const size_t len)
⋮----
hashitem_T *hash_lookup(const hashtab_T *const ht, const char *const key, const size_t key_len,
⋮----
void hash_debug_results(void)
⋮----
int hash_add(hashtab_T *ht, char *key)
⋮----
void hash_add_item(hashtab_T *ht, hashitem_T *hi, char *key, hash_T hash)
⋮----
void hash_remove(hashtab_T *ht, hashitem_T *hi)
⋮----
void hash_lock(hashtab_T *ht)
⋮----
void hash_unlock(hashtab_T *ht)
⋮----
static void hash_may_resize(hashtab_T *ht, size_t minitems)
⋮----
hash_T hash_hash(const char *key)
⋮----
hash_T hash_hash_len(const char *key, const size_t len)
⋮----
... (2 lines truncated)
</file>

<file path="src/nvim/hashtab.h">

</file>

<file path="src/nvim/help.c">
void ex_help(exarg_T *eap)
⋮----
// remove trailing blanks
⋮----
// Check for a specified language
⋮----
// ":help!" (bang, no args).
⋮----
// When no argument given go to the index.
⋮----
void ex_helpclose(exarg_T *eap)
⋮----
char *check_help_lang(char *arg)
⋮----
int help_heuristic(char *matched_string, int offset, bool wrong_case)
⋮----
static int help_compare(const void *s1, const void *s2)
⋮----
int find_help_tags(const char *arg, int *num_matches, char ***matches, bool keep_lang)
⋮----
void cleanup_help_tags(int num_file, char **file)
⋮----
void prepare_help_buffer(void)
⋮----
void get_local_additions(void)
⋮----
void ex_exusage(exarg_T *eap)
⋮----
void ex_viusage(exarg_T *eap)
⋮----
... (2 lines truncated)
</file>

<file path="src/nvim/help.h">

</file>

<file path="src/nvim/highlight_defs.h">
typedef int32_t RgbValue;
⋮----
} HlAttrFlags;
⋮----
} HlAttrs;
⋮----
} hlf_T;
⋮----
} HlKind;
⋮----
} HlEntry;
⋮----
} ColorKey;
⋮----
} ColorItem;
</file>

<file path="src/nvim/highlight_group.c">
} HlGroup;
⋮----
int highlight_num_groups(void)
⋮----
char *highlight_group_name(int id)
⋮----
int highlight_link_id(int id)
⋮----
void syn_init_cmdline_highlight(bool reset, bool init)
⋮----
void init_highlight(bool both, bool reset)
⋮----
int load_colors(char *name)
⋮----
static int lookup_color(const int idx, const bool foreground, TriState *const boldp)
⋮----
void set_hl_group(int id, HlAttrs attrs, Dict(highlight) *dict, int link_id)
⋮----
static bool set_gui_color(int idx, bool init, const char *arg, RgbValue *color, int *color_idx)
⋮----
void do_highlight(const char *line, const bool forceit, const bool init)
⋮----
void free_highlight(void)
⋮----
void restore_cterm_colors(void)
⋮----
static bool hl_has_settings(int idx, bool check_link)
⋮----
static void highlight_clear(int idx)
⋮----
... (78 lines truncated)
</file>

<file path="src/nvim/highlight_group.h">
} color_name_table_T;
</file>

<file path="src/nvim/highlight.c">
void highlight_init(void)
⋮----
bool highlight_use_hlstate(void)
⋮----
static int get_attr_entry(HlEntry entry)
⋮----
void ui_send_all_hls(RemoteUI *ui)
⋮----
int hl_get_syn_attr(int ns_id, int idx, HlAttrs at_en)
⋮----
void ns_hl_def(NS ns_id, int hl_id, HlAttrs attrs, int link_id, Dict(highlight) *dict)
⋮----
int ns_get_hl(NS *ns_hl, int hl_id, bool link, bool nodefault)
⋮----
bool hl_check_ns(void)
⋮----
bool win_check_ns_hl(win_T *wp)
⋮----
bool hl_ns_get_attrs(int ns_id, int hl_id, bool *optional, HlAttrs *attrs)
⋮----
int hl_get_ui_attr(int ns_id, int idx, int final_id, bool optional)
⋮----
int hl_apply_winblend(int winbl, int attr)
⋮----
void update_window_hl(win_T *wp, bool invalid)
⋮----
void update_ns_hl(int ns_id)
⋮----
int win_bg_attr(win_T *wp)
⋮----
... (48 lines truncated)
</file>

<file path="src/nvim/highlight.h">
EXTERN int cterm_normal_fg_color INIT( = 0);
EXTERN int cterm_normal_bg_color INIT( = 0);
EXTERN RgbValue normal_fg INIT( = -1);
EXTERN RgbValue normal_bg INIT( = -1);
EXTERN RgbValue normal_sp INIT( = -1);
⋮----
EXTERN NS ns_hl_global INIT( = 0);
EXTERN NS ns_hl_win INIT( = -1);
EXTERN NS ns_hl_fast INIT( = -1);
EXTERN NS ns_hl_active INIT( = 0);
⋮----
static inline int win_hl_attr(win_T *wp, int hlf)
</file>

<file path="src/nvim/iconv_defs.h">

</file>

<file path="src/nvim/indent_c.c">
} cpp_baseclass_cache_T;
⋮----
int check_linecomment(const char *line)
⋮----
if (*(p - 1) != '\\') {             // skip escaped quote
⋮----
// skip #\" form
⋮----
break;                // found!
⋮----
// Scan the line once, skipping over strings, char constants and raw
// strings, instead of testing each '/' with is_pos_in_string() (which
// rescans from the start, making this quadratic on lines with many
// slashes).
⋮----
// Accept a double /, unless it's preceded with * and followed by
⋮----
static pos_T *ind_find_start_comment(void)
⋮----
pos_T *find_start_comment(int ind_maxcomment)
⋮----
static pos_T *ind_find_start_CORS(linenr_T *is_raw)
⋮----
static pos_T *find_start_rawstring(int ind_maxcomment)
⋮----
static const char *skip_string(const char *p)
⋮----
if (p[1] == '\\' && p[2] != NUL) {    // '\n' or '\000'
⋮----
} else if (p[0] == '"') {         // end of string
... (216 lines truncated)
</file>

<file path="src/nvim/indent_c.h">

</file>

<file path="src/nvim/indent.c">
bool tabstop_set(char *var, colnr_T **array)
⋮----
int tabstop_padding(colnr_T col, OptInt ts_arg, const colnr_T *vts)
⋮----
int tabstop_at(colnr_T col, OptInt ts, const colnr_T *vts, bool left)
⋮----
colnr_T tabstop_start(colnr_T col, int ts, colnr_T *vts)
⋮----
void tabstop_fromto(colnr_T start_col, colnr_T end_col, int ts_arg, const colnr_T *vts, int *ntabs,
⋮----
int *tabstop_copy(const int *oldts)
⋮----
int tabstop_count(colnr_T *ts)
⋮----
int tabstop_first(colnr_T *ts)
⋮----
int get_sw_value(buf_T *buf)
⋮----
static int get_sw_value_pos(buf_T *buf, pos_T *pos, bool left)
⋮----
int get_sw_value_indent(buf_T *buf, bool left)
⋮----
int get_sw_value_col(buf_T *buf, colnr_T col, bool left)
⋮----
int get_sts_value(void)
⋮----
int get_indent(void)
⋮----
int get_indent_lnum(linenr_T lnum)
⋮----
... (64 lines truncated)
</file>

<file path="src/nvim/indent.h">

</file>

<file path="src/nvim/input_cmdatom_defs.h">
typedef enum CmdAtomType {
⋮----
} CmdAtomType;
⋮----
} CmdOrigin;
⋮----
} VisualIns;
⋮----
} InsSession;
⋮----
typedef struct CmdAtom CmdAtom;
typedef kvec_t(CmdAtom) CmdAtomVec;
⋮----
struct CmdAtom {
</file>

<file path="src/nvim/input_cmdatom.c">
} VatomState;
⋮----
static CmdFrame *root_frame(void)
⋮----
static bool is_child_frame(void)
⋮----
void atom_free(CmdAtom *atom)
⋮----
void atoms_free(CmdAtomVec *v)
⋮----
void atom_free_all(void)
⋮----
CmdSpec atom_cmd_spec(const cmdarg_T *cap)
⋮----
static CmdOrigin atom_origin(void)
⋮----
static bool atom_origin_changed(CmdOrigin origin)
⋮----
static bool atom_origin_moved(CmdOrigin origin)
⋮----
static int atom_origin_undoseq(CmdOrigin origin)
⋮----
pos_T atom_origin_pos(buf_T *buf)
⋮----
static char *atom_redo_keys(CmdSpec spec)
⋮----
static CmdAtom atom_from_redo(CmdAtomType type)
⋮----
static CmdAtom atom_from_spec(CmdAtomType type, CmdSpec spec)
⋮----
... (125 lines truncated)
</file>

<file path="src/nvim/input_cmdatom.h">
typedef struct CmdFrame CmdFrame;
struct CmdFrame {
</file>

<file path="src/nvim/input_defs.h">
} StuffBuf;
⋮----
} CmdSpec;
⋮----
} RedoState;
⋮----
} typebuf_T;
⋮----
} UngotKey;
⋮----
} tasave_T;
⋮----
enum RemapValues {
</file>

<file path="src/nvim/input.c">
} gotchars_state_T;
⋮----
static void free_buff(StuffBuf *buf)
⋮----
char *get_recorded(void)
⋮----
static void redo_prefix(const CmdSpec *spec, StringBuilder *buf, bool replay)
⋮----
static void redo_chars(const CmdSpec *spec, StringBuilder *buf, bool arg_meta)
⋮----
static String sb_take_string(StringBuilder *buf)
⋮----
String redo_keys(const CmdSpec *spec)
⋮----
CmdSpec redo_spec(void)
⋮----
static void add_buff(StuffBuf *const buf, const char *const s, ptrdiff_t slen)
⋮----
static void add_num_buff(StuffBuf *buf, int n)
⋮----
static ptrdiff_t key_byte_encode(int c, char temp[4])
⋮----
static size_t key_char_encode(int c, char *buf)
⋮----
static void add_char_buff(StuffBuf *buf, int c)
⋮----
static void sb_add_byte(StringBuilder *sb, int c)
⋮----
void sb_add_char(StringBuilder *sb, int c)
⋮----
... (170 lines truncated)
</file>

<file path="src/nvim/input.h">
} flush_buffers_T;
⋮----
EXTERN bool test_disable_char_avail INIT( = false);
</file>

<file path="src/nvim/insert_defs.h">
} InsArrow;
⋮----
} InsState;
</file>

<file path="src/nvim/insert.c">
} InsertState;
⋮----
static void insert_enter(InsertState *s)
⋮----
static int insert_check(VimState *state)
⋮----
static int insert_execute(VimState *state, int key)
⋮----
static int insert_handle_key(InsertState *s)
⋮----
static void insert_do_complete(InsertState *s)
⋮----
static void insert_do_cindent(InsertState *s)
⋮----
static void insert_handle_key_post(InsertState *s)
⋮----
bool edit(int cmdchar, bool startln, int count)
⋮----
void ins_redraw(bool ready)
⋮----
static void ins_ctrl_v(void)
⋮----
void edit_putchar(int c, bool highlight)
⋮----
char *buf_prompt_text(const buf_T *const buf)
⋮----
char *prompt_text(void)
⋮----
static void init_prompt(int cmdchar_todo)
⋮----
... (152 lines truncated)
</file>

<file path="src/nvim/insert.h">

</file>

<file path="src/nvim/insexpand.c">
typedef struct compl_S compl_T;
struct compl_S {
⋮----
} ins_compl_next_state_T;
⋮----
} cp_flags_T;
⋮----
} complstr_T;
⋮----
static void compl_strings_add(const char *str, size_t len, hash_T hash)
⋮----
typedef struct cpt_source_T {
⋮----
} cpt_source_T;
⋮----
void ins_ctrl_x(void)
⋮----
bool ctrl_x_mode_none(void)
⋮----
bool ctrl_x_mode_normal(void)
⋮----
bool ctrl_x_mode_scroll(void)
⋮----
bool ctrl_x_mode_whole_line(void)
⋮----
bool ctrl_x_mode_files(void)
⋮----
bool ctrl_x_mode_tags(void)
⋮----
bool ctrl_x_mode_path_patterns(void)
... (535 lines truncated)
</file>

<file path="src/nvim/insexpand.h">
} cpitem_T;
</file>

<file path="src/nvim/keycodes_defs.h">
struct keychord {
</file>

<file path="src/nvim/keycodes.c">
static struct mousetable {
⋮----
int name_to_mod_mask(int c)
⋮----
int simplify_key(const int key, int *modifiers)
⋮----
int unsimplify_key(const int c, int *modifiers)
⋮----
int handle_x_keys(const int key)
⋮----
char *get_special_key(int c, int modifiers, struct keychord *data)
⋮----
char *get_special_key_name(int c, int modifiers)
⋮----
unsigned trans_special(const char **const srcp, const size_t src_len, char *const dst,
⋮----
unsigned special_to_buf(int key, int modifiers, bool escape_ks, char *dst)
⋮----
int find_special_key(const char **const srcp, const size_t src_len, int *const modp,
⋮----
bp += 3;  // skip t_xx, xx may be '-' or '>'
⋮----
if (bp <= end && *bp == '>') {  // found matching '>'
⋮----
// Which modifiers are given?
⋮----
break;                // Illegal modifier name
⋮----
// Legal modifier name.
⋮----
... (33 lines truncated)
</file>

<file path="src/nvim/keycodes.h">
enum key_extra {
⋮----
extern const struct modmasktable {
</file>

<file path="src/nvim/keycodes.lua">
return {
  --- @type [string, string][] List of [key, name] tuples.
  --- For keys with multiple names, put the preferred name first.
  --- For multiple keys with the same name, put the preferred key first.
  names = {
    { [[' ']], 'Space' },
    { [[TAB]], 'Tab' },
    { [[K_TAB]], 'Tab' },
    { [[NL]], 'NL' },
    { [[NL]], 'NewLine' }, -- Alternative name
    { [[NL]], 'LineFeed' }, -- Alternative name
    { [[NL]], 'LF' }, -- Alternative name
    { [[CAR]], 'CR' },
    { [[CAR]], 'Return' }, -- Alternative name
    { [[CAR]], 'Enter' }, -- Alternative name
    { [[K_BS]], 'BS' },
    { [[K_BS]], 'BackSpace' }, -- Alternative name
    { [[ESC]], 'Esc' },
    { [[ESC]], 'Escape' }, -- Alternative name
    { [[CSI]], 'CSI' },
    { [['|']], 'Bar' },
    { [['\\']], 'Bslash' },
    { [[K_DEL]], 'Del' },
    { [[K_DEL]], 'Delete' }, -- Alternative name
    { [[K_KDEL]], 'kDel' },
    { [[K_KDEL]], 'KPPeriod' }, -- libtermkey name
    { [[K_UP]], 'Up' },
    { [[K_DOWN]], 'Down' },
    { [[K_LEFT]], 'Left' },
    { [[K_RIGHT]], 'Right' },
... (179 lines truncated)
</file>

<file path="src/nvim/linematch.c">
typedef struct diffcmppath_S diffcmppath_T;
struct diffcmppath_S {
⋮----
static size_t line_len(const mmfile_t *m)
⋮----
static int matching_chars_iwhite(const mmfile_t *s1, const mmfile_t *s2)
⋮----
static int matching_chars(const mmfile_t *m1, const mmfile_t *m2)
⋮----
static int count_n_matched_chars(mmfile_t **sp, const size_t n, bool iwhite)
⋮----
mmfile_t fastforward_buf_to_lnum(mmfile_t s, linenr_T lnum)
⋮----
static void try_possible_paths(const int *df_iters, const size_t *paths, const int npaths,
⋮----
static size_t unwrap_indexes(const int *values, const int *diff_len, const size_t ndiffs)
⋮----
static void populate_tensor(int *df_iters, const size_t ch_dim, diffcmppath_T *diffcmppath,
⋮----
size_t linematch_nbuffers(const mmfile_t **diff_blk, const int *diff_len, const size_t ndiffs,
⋮----
static size_t test_charmatch_paths(diffcmppath_T *node, int lastdecision)
</file>

<file path="src/nvim/linematch.h">

</file>

<file path="src/nvim/log.c">
static bool log_try_create(char *fname)
⋮----
static void log_path_init(void)
⋮----
void log_init(void)
⋮----
void log_lock(void)
⋮----
void log_unlock(void)
⋮----
bool logmsg(int log_level, const char *context, const char *func_name, int line_num, bool eol,
⋮----
void log_uv_handles(void *loop)
⋮----
FILE *open_log_file(void)
⋮----
void log_callstack_to_file(FILE *log_file, const char *const func_name, const int line_num)
⋮----
void log_callstack(const char *const func_name, const int line_num)
⋮----
static bool do_log_to_file(FILE *log_file, int log_level, const char *context,
⋮----
static bool v_do_log_to_file(FILE *log_file, int log_level, const char *context,
</file>

<file path="src/nvim/log.h">
EXTERN int g_min_log_level INIT( = LOGLVL_WRN);
⋮----
EXTERN int g_min_log_level INIT( = 0);
</file>

<file path="src/nvim/macros_defs.h">

</file>

<file path="src/nvim/main.c">
void event_init(void)
⋮----
static bool event_teardown(void)
⋮----
static void early_init(mparm_T *paramp)
⋮----
int nvim_main(int argc, char **argv);
int nvim_main(int argc, char **argv)
⋮----
int main(int argc, char **argv)
⋮----
void os_exit(int r)
⋮----
void getout(int exitval)
⋮----
void preserve_exit(const char *errmsg)
⋮----
static int get_number_arg(const char *p, int *idx, int def)
⋮----
static uint64_t server_connect(char *server_addr, const char **errmsg)
⋮----
static void remote_request(mparm_T *params, int remote_args, char *server_addr, int argc,
⋮----
static bool edit_stdin(mparm_T *parmp)
⋮----
static void command_line_scan(mparm_T *parmp)
⋮----
static void set_argf_var(void)
⋮----
static void init_params(mparm_T *paramp, int argc, char **argv)
... (49 lines truncated)
</file>

<file path="src/nvim/main.h">
} mparm_T;
</file>

<file path="src/nvim/map_defs.h">
static inline uint32_t hash_String(String s)
⋮----
static inline bool equal_String(String a, String b)
⋮----
} MapHash;
⋮----
} MHPutStatus;
⋮----
void mh_clear(MapHash *h);
void mh_realloc(MapHash *h, uint32_t n_min_buckets);
⋮----
KEY_DECLS(cstr_t)
⋮----
void pmap_del2(PMap(cstr_t) *map, const char *key);
</file>

<file path="src/nvim/map_glyph_cache.c">
uint32_t mh_find_bucket_glyph(Set(glyph) *set, String key, bool put)
⋮----
uint32_t mh_get_glyph(Set(glyph) *set, String key)
⋮----
void mh_rehash_glyph(Set(glyph) *set)
⋮----
uint32_t mh_put_glyph(Set(glyph) *set, String key, MHPutStatus *new)
</file>

<file path="src/nvim/map_key_impl.c.h">
uint32_t KEY_NAME(mh_find_bucket_)(SET_TYPE *set, KEY_TYPE key, bool put)
⋮----
uint32_t KEY_NAME(mh_get_)(SET_TYPE *set, KEY_TYPE key)
⋮----
void KEY_NAME(mh_rehash_)(SET_TYPE *set)
⋮----
uint32_t KEY_NAME(mh_put_)(SET_TYPE *set, KEY_TYPE key, MHPutStatus *new)
⋮----
uint32_t KEY_NAME(mh_delete_)(SET_TYPE *set, KEY_TYPE *key)
</file>

<file path="src/nvim/map_value_impl.c.h">
VALUE_TYPE *MAP_NAME(map_ref_)(MAP_TYPE *map, KEY_TYPE key, KEY_TYPE **key_alloc)
⋮----
VALUE_TYPE *MAP_NAME(map_put_ref_)(MAP_TYPE *map, KEY_TYPE key, KEY_TYPE **key_alloc,
⋮----
VALUE_TYPE MAP_NAME(map_del_)(MAP_TYPE *map, KEY_TYPE key, KEY_TYPE *key_alloc)
</file>

<file path="src/nvim/map.c">
static inline uint32_t hash_cstr_t(const char *s)
⋮----
static inline uint32_t hash_path_t(const char *p)
⋮----
static inline bool equal_path_t(const char *a, const char *b)
⋮----
static inline uint32_t hash_HlEntry(HlEntry ae)
⋮----
static inline bool equal_HlEntry(HlEntry ae1, HlEntry ae2)
⋮----
static inline uint32_t hash_ColorKey(ColorKey ae)
⋮----
static inline bool equal_ColorKey(ColorKey ae1, ColorKey ae2)
⋮----
void mh_realloc(MapHash *h, uint32_t n_min_buckets)
⋮----
void mh_clear(MapHash *h)
⋮----
void pmap_del2(PMap(cstr_t) *map, const char *key)
</file>

<file path="src/nvim/mapping_defs.h">
typedef struct mapblock mapblock_T;
struct mapblock {
</file>

<file path="src/nvim/mapping.c">
struct map_arguments {
⋮----
typedef struct map_arguments MapArguments;
⋮----
mapblock_T *get_maphash_list(int state, int c)
⋮----
mapblock_T *get_buf_maphash_list(int state, int c)
⋮----
static mapblock_T *map_luaid_scan(mapblock_T *const *mappings, size_t size, int id)
⋮----
LuaRef map_luaid_get(int n)
⋮----
static void mapblock_free(mapblock_T **mpp)
⋮----
void map_mode_to_chars(int mode, char *buf)
⋮----
static void showmap(mapblock_T *mp, bool local)
⋮----
static bool set_maparg_lhs_rhs(const char *const orig_lhs, const size_t orig_lhs_len,
⋮----
static void set_maparg_rhs(const char *const orig_rhs, const size_t orig_rhs_len,
⋮----
static int str_to_mapargs(const char *strargs, bool is_unmap, MapArguments *mapargs)
⋮----
lhs_end++;  // skip CTRL-V or backslash
⋮----
// {lhs_end} is a pointer to the "terminating whitespace" after {lhs}.
// Use that to initialize {rhs_start}.
⋮----
// Given {lhs} might be larger than MAXMAPLEN before replace_termcodes
... (221 lines truncated)
</file>

<file path="src/nvim/mapping.h">
EXTERN int repeat_luamap INIT( = 0);
</file>

<file path="src/nvim/mark_defs.h">
} MarkMoveRes;
⋮----
} MarkMove;
⋮----
} MarkGet;
⋮----
} MarkAdjustMode;
⋮----
} fmarkv_T;
⋮----
} fmark_T;
⋮----
} xfmark_T;
⋮----
static inline bool lt(pos_T a, pos_T b)
⋮----
static inline bool equalpos(pos_T a, pos_T b)
⋮----
static inline bool ltoreq(pos_T a, pos_T b)
⋮----
static inline void clearpos(pos_T *a)
</file>

<file path="src/nvim/mark.c">
int setmark(int c)
⋮----
void free_fmark(fmark_T fm)
⋮----
void free_xfmark(xfmark_T fm)
⋮----
void clear_fmark(fmark_T *const fm, const Timestamp timestamp)
⋮----
static void do_markset_autocmd(char c, pos_T *pos, buf_T *buf)
⋮----
int setmark_pos(int c, pos_T *pos, int fnum, fmarkv_T *view_pt)
⋮----
void mark_jumplist_forget_file(win_T *wp, int fnum)
⋮----
void mark_forget_file(win_T *wp, int fnum)
⋮----
void setpcmark(void)
⋮----
void checkpcmark(void)
⋮----
fmark_T *get_jumplist(win_T *win, int count)
⋮----
fmark_T *get_changelist(buf_T *buf, win_T *win, int count)
⋮----
fmark_T *mark_get(buf_T *buf, win_T *win, fmark_T *fmp, MarkGet flag, int name)
⋮----
xfmark_T *mark_get_global(bool resolve, int name)
⋮----
fmark_T *mark_get_local(buf_T *buf, win_T *win, int name)
⋮----
... (82 lines truncated)
</file>

<file path="src/nvim/mark.h">
static inline int mark_global_index(const char name)
⋮----
static inline int mark_local_index(const char name)
</file>

<file path="src/nvim/marktree_defs.h">
} MTPos;
⋮----
} MetaIndex;
⋮----
} MarkTreeIter;
⋮----
} MTKey;
⋮----
} MTPair;
⋮----
typedef kvec_withinit_t(uint64_t, 4) Intersection;
⋮----
struct mtnode_inner_s {
⋮----
struct mtnode_s {
⋮----
} MarkTree;
</file>

<file path="src/nvim/marktree.c">
static bool pos_leq(MTPos a, MTPos b)
⋮----
static bool pos_less(MTPos a, MTPos b)
⋮----
static void relative(MTPos base, MTPos *val)
⋮----
static void unrelative(MTPos base, MTPos *val)
⋮----
static void compose(MTPos *base, MTPos val)
⋮----
typedef Map(uint64_t, MTDamagePair) MTDamageMap;
⋮----
static int key_cmp(MTKey a, MTKey b)
⋮----
static inline int marktree_getp_aux(const MTNode *x, MTKey k, bool *match)
⋮----
static inline void refkey(MarkTree *b, MTNode *x, int i)
⋮----
static MTNode *id2node(MarkTree *b, uint64_t id)
⋮----
static inline void split_node(MarkTree *b, MTNode *x, const int i, MTKey next)
⋮----
static inline void marktree_putp_aux(MarkTree *b, MTNode *x, MTKey k, uint32_t *meta_inc)
⋮----
void marktree_put(MarkTree *b, MTKey key, int end_row, int end_col, bool end_right)
⋮----
static bool intersection_has(Intersection *x, uint64_t id)
⋮----
static size_t intersect_item_pos(MTNode *x, uint64_t id)
⋮----
... (136 lines truncated)
</file>

<file path="src/nvim/marktree.h">
static inline uint64_t mt_lookup_id(uint32_t ns, uint32_t id, bool enda)
⋮----
static inline uint64_t mt_lookup_key_side(MTKey key, bool end)
⋮----
static inline uint64_t mt_lookup_key(MTKey key)
⋮----
static inline bool mt_paired(MTKey key)
⋮----
static inline bool mt_end(MTKey key)
⋮----
static inline bool mt_start(MTKey key)
⋮----
static inline bool mt_right(MTKey key)
⋮----
static inline bool mt_no_undo(MTKey key)
⋮----
static inline bool mt_invalidate(MTKey key)
⋮----
static inline bool mt_invalid(MTKey key)
⋮----
static inline bool mt_decor_any(MTKey key)
⋮----
static inline bool mt_decor_sign(MTKey key)
⋮----
static inline bool mt_conceal_lines(MTKey key)
⋮----
static inline uint16_t mt_flags(bool right_gravity, bool no_undo, bool invalidate, bool decor_ext)
⋮----
static inline MTPair mtpair_from(MTKey start, MTKey end)
⋮----
... (4 lines truncated)
</file>

<file path="src/nvim/match.c">
static int match_add(win_T *wp, const char *const grp, const char *const pat, int prio, int id,
⋮----
static int match_delete(win_T *wp, int id, bool perr)
⋮----
void clear_matches(win_T *wp)
⋮----
static matchitem_T *get_match(win_T *wp, int id)
⋮----
void init_search_hl(win_T *wp, match_T *search_hl)
⋮----
static int next_search_hl_pos(match_T *shl, linenr_T lnum, matchitem_T *match, colnr_T mincol)
⋮----
static void next_search_hl(win_T *win, match_T *search_hl, match_T *shl, linenr_T lnum,
⋮----
void prepare_search_hl(win_T *wp, match_T *search_hl, linenr_T lnum)
⋮----
static void check_cur_search_hl(win_T *wp, match_T *shl)
⋮----
bool prepare_search_hl_line(win_T *wp, linenr_T lnum, colnr_T mincol, char **line,
⋮----
int update_search_hl(win_T *wp, linenr_T lnum, colnr_T col, char **line, match_T *search_hl,
⋮----
bool get_prevcol_hl_flag(win_T *wp, match_T *search_hl, colnr_T curcol)
⋮----
void get_search_match_hl(win_T *wp, match_T *search_hl, colnr_T col, int *char_attr)
⋮----
static int matchadd_dict_arg(typval_T *tv, const char **conceal_char, win_T **win)
⋮----
void f_clearmatches(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
... (14 lines truncated)
</file>

<file path="src/nvim/match.h">

</file>

<file path="src/nvim/math.c">
int xfpclassify(double d)
⋮----
int xisinf(double d)
⋮----
int xisnan(double d)
⋮----
int xctz(uint64_t x)
⋮----
unsigned xpopcount(uint64_t x)
⋮----
int vim_append_digit_int(int *value, int digit)
⋮----
int trim_to_int(int64_t x)
</file>

<file path="src/nvim/math.h">

</file>

<file path="src/nvim/mbyte_defs.h">
} ConvFlags;
⋮----
} vimconv_T;
⋮----
} CharInfo;
⋮----
} StrCharInfo;
⋮----
} ClusterInfo;
⋮----
} CharBoundsOff;
⋮----
typedef utf8proc_int32_t GraphemeState;
</file>

<file path="src/nvim/mbyte.c">
struct interval {
⋮----
static int enc_canon_search(const char *name)
⋮----
int enc_canon_props(const char *name)
⋮----
int bomb_size(void)
⋮----
void remove_bom(char *s)
⋮----
int mb_get_class(const char *p)
⋮----
int mb_get_class_tab(const char *p, const uint64_t *const chartab)
⋮----
static bool prop_is_emojilike(const utf8proc_property_t *prop)
⋮----
int utf_char2cells(int c)
⋮----
static int utf_cluster_spacing_cells(const char *p, int firstlen, int size)
⋮----
int ptr2cells(const char *p_in)
⋮----
int utf_ptr2cells(const char *p_in)
⋮----
int32_t utf_ptr2CharInfo_impl(uint8_t const *p, uintptr_t const len)
⋮----
int utf_ptr2cells_len(const char *p, int size)
⋮----
size_t mb_string2cells(const char *str)
⋮----
... (231 lines truncated)
</file>

<file path="src/nvim/mbyte.h">
static inline bool utf_is_trail_byte(uint8_t const byte)
⋮----
static inline CharInfo utf_ptr2CharInfo(char const *const p_in)
⋮----
static inline StrCharInfo utf_ptr2StrCharInfo(char *ptr)
⋮----
static inline int basechar_cells_impl(CharInfo c)
⋮----
static inline ClusterInfo utf_ClusterInfo(StrCharInfo cur)
⋮----
static inline int ascii2cells(int b)
</file>

<file path="src/nvim/mcursor.c">
} McSandbox;
⋮----
} McInsSaved;
⋮----
void mc_init(void)
⋮----
static uint32_t mc_ns(void)
⋮----
static uint32_t mc_vcur_ns(void)
⋮----
static uint32_t mc_vsel_ns(void)
⋮----
static uint32_t mc_last_ns(void)
⋮----
static uint32_t mc_session_ns(void)
⋮----
size_t mc_count(void)
⋮----
size_t mc_showcmd(char *buf, size_t size)
⋮----
/// True during a replay: re-executing keys internally, not new user input.
bool mc_replaying(void)
⋮----
/// Creates or updates the (ui_watched) extmark tracking a multicursor position.
/// Decor handled by mcursor.lua. TODO(justinmk): #41576
static void mc_mark_upd(buf_T *buf, uint32_t *mark, pos_T pos)
⋮----
/// Session-internal variant of mc_mark_upd(): tracks a transient, undecorated position (primary
/// cursor/topline across a cascade, the preview-apply cursor).
static void mc_track_upd(buf_T *buf, uint32_t *mark, pos_T pos)
... (154 lines truncated)
</file>

<file path="src/nvim/mcursor.h">

</file>

<file path="src/nvim/memfile_defs.h">
typedef int64_t blocknr_T;
⋮----
} bhdr_T;
⋮----
} mfdirty_T;
⋮----
} memfile_T;
</file>

<file path="src/nvim/memfile.c">
memfile_T *mf_open(char *fname, int flags)
⋮----
int mf_open_file(memfile_T *mfp, char *fname)
⋮----
void mf_close(memfile_T *mfp, bool del_file)
⋮----
void mf_close_file(buf_T *buf, bool getlines)
⋮----
void mf_new_page_size(memfile_T *mfp, unsigned new_size)
⋮----
bhdr_T *mf_new(memfile_T *mfp, bool negative, unsigned page_count)
⋮----
bhdr_T *mf_get(memfile_T *mfp, blocknr_T nr, unsigned page_count)
⋮----
void mf_put(memfile_T *mfp, bhdr_T *hp, bool dirty, bool infile)
⋮----
void mf_free(memfile_T *mfp, bhdr_T *hp)
⋮----
int mf_sync(memfile_T *mfp, int flags)
⋮----
void mf_set_dirty(memfile_T *mfp)
⋮----
bool mf_release_all(void)
⋮----
static bhdr_T *mf_alloc_bhdr(memfile_T *mfp, unsigned page_count)
⋮----
static void mf_free_bhdr(bhdr_T *hp)
⋮----
static void mf_ins_free(memfile_T *mfp, bhdr_T *hp)
⋮----
... (20 lines truncated)
</file>

<file path="src/nvim/memfile.h">

</file>

<file path="src/nvim/memline_defs.h">
} infoptr_T;
⋮----
} chunksize_T;
⋮----
} memline_T;
</file>

<file path="src/nvim/memline.c">
} PointerEntry;
⋮----
} PointerBlock;
⋮----
} DataBlock;
⋮----
} ZeroBlock;
⋮----
} upd_block0_T;
⋮----
} sea_choice_T;
⋮----
int ml_open(buf_T *buf)
⋮----
void ml_setname(buf_T *buf)
⋮----
void ml_open_files(void)
⋮----
void ml_open_file(buf_T *buf)
⋮----
void check_need_swap(bool newfile)
⋮----
void ml_close(buf_T *buf, int del_file)
⋮----
void ml_close_all(bool del_file)
⋮----
void ml_close_notmod(void)
⋮----
void ml_timestamp(buf_T *buf)
⋮----
... (244 lines truncated)
</file>

<file path="src/nvim/memline.h">

</file>

<file path="src/nvim/memory_defs.h">
typedef struct consumed_blk {
⋮----
} Arena;
</file>

<file path="src/nvim/memory.c">
static void try_to_free_memory(void)
⋮----
static void do_outofmem_msg(size_t size)
⋮----
void *try_malloc(size_t size) FUNC_ATTR_MALLOC FUNC_ATTR_ALLOC_SIZE(1)
⋮----
void *verbose_try_malloc(size_t size) FUNC_ATTR_MALLOC FUNC_ATTR_ALLOC_SIZE(1)
⋮----
void *xmalloc(size_t size)
⋮----
void xfree(void *ptr)
⋮----
void *xcalloc(size_t count, size_t size)
⋮----
void *xrealloc(void *ptr, size_t size)
⋮----
void *xmallocz(size_t size)
⋮----
void *xmemdupz(const void *data, size_t len)
⋮----
void *xmemcpyz(void *dst, const void *src, size_t len)
⋮----
size_t xstrnlen(const char *s, size_t n)
⋮----
char *xstrchrnul(const char *str, char c)
⋮----
void *xmemscan(const void *addr, char c, size_t size)
⋮----
void strchrsub(char *str, char c, char x)
⋮----
... (56 lines truncated)
</file>

<file path="src/nvim/memory.h">
EXTERN size_t arena_alloc_count INIT( = 0);
</file>

<file path="src/nvim/menu_defs.h">
typedef struct VimMenu vimmenu_T;
⋮----
struct VimMenu {
</file>

<file path="src/nvim/menu.c">
static bool menu_is_winbar(const char *const name)
⋮----
static vimmenu_T **get_root_menu(const char *const name)
⋮----
static int is_menus_locked(void)
⋮----
void ex_menu(exarg_T *eap)
⋮----
// Fill in the priority table.
⋮----
pri_tab[MENUDEPTH] = -1;              // mark end of the table
⋮----
// Check for "disable" or "enable" argument.
⋮----
// If there is no argument, display all menus.
⋮----
// If there is only a menu name, display menus with that name.
⋮----
// Change sensitivity of the menu.
// For the PopUp menu, remove a menu for each mode separately.
// Careful: menu_enable_recurse() changes menu_path.
if (strcmp(menu_path, "*") == 0) {          // meaning: do all menus
⋮----
// Delete menu(s).
if (strcmp(menu_path, "*") == 0) {          // meaning: remove all menus
⋮----
// Careful: remove_menu() changes menu_path
⋮----
// Add menu(s).
// Replace special key codes.
... (138 lines truncated)
</file>

<file path="src/nvim/menu.h">

</file>

<file path="src/nvim/message_defs.h">
} HlMessageChunk;
⋮----
typedef kvec_t(HlMessageChunk) HlMessage;
⋮----
typedef struct msg_data {
⋮----
} MessageData;
⋮----
typedef struct msg_hist {
⋮----
} MessageHistoryEntry;
</file>

<file path="src/nvim/message.c">
typedef struct msgchunk_S msgchunk_T;
struct msgchunk_S {
⋮----
bool msg_id_exists(int64_t id)
⋮----
static void ui_ext_msg_set_pos(int row, bool scrolled)
⋮----
void msg_grid_set_pos(int row, bool scrolled)
⋮----
bool msg_use_grid(void)
⋮----
void msg_grid_validate(void)
⋮----
int verb_msg(const char *s)
⋮----
bool msg(const char *s, const int hl_id)
⋮----
void msg_multiline(String str, int hl_id, bool check_int, bool hist, bool *need_clear)
⋮----
static bool format_progress_message(HlMessage *hl_msg, MessageData *msg_data)
⋮----
MsgID msg_multihl(MsgID id, HlMessage hl_msg, const char *kind, bool history, bool err,
⋮----
bool msg_keep(const char *s, int hl_id, bool keep, bool multiline)
⋮----
char *msg_strtrunc(const char *s, int force)
⋮----
void trunc_string(const char *s, char *buf, int room_in, int buflen)
⋮----
int smsg(int hl_id, const char *s, ...)
... (270 lines truncated)
</file>

<file path="src/nvim/message.h">
EXTERN bool msg_ext_need_clear INIT( = false);
⋮----
EXTERN bool msg_ext_skip_flush INIT( = false);
⋮----
EXTERN bool msg_ext_overwrite INIT( = false);
⋮----
EXTERN bool msg_ext_skip_verbose INIT( = false);
⋮----
EXTERN bool msg_ext_fast INIT( = true);
⋮----
EXTERN ScreenGrid msg_grid INIT( = SCREEN_GRID_INIT);
EXTERN int msg_grid_pos INIT( = 0);
⋮----
EXTERN GridView msg_grid_adj INIT( = { 0 });
⋮----
EXTERN int msg_scrolled_at_flush INIT( = 0);
⋮----
EXTERN int msg_grid_scroll_discount INIT( = 0);
⋮----
EXTERN int msg_listdo_overwrite INIT( = 0);
</file>

<file path="src/nvim/mouse.c">
static int get_mouse_class(char *p)
⋮----
static void find_start_of_word(pos_T *pos)
⋮----
static void find_end_of_word(pos_T *pos)
⋮----
static void move_tab_to_mouse(void)
⋮----
static void mouse_tab_close(int c1)
⋮----
static void call_click_def_func(StlClickDefinition *click_defs, int col, int which_button)
⋮----
static int get_fpos_of_mouse(pos_T *mpos, win_T **wpp)
⋮----
static int do_popup(int which_button, int m_pos_flag, pos_T m_pos)
⋮----
bool do_mouse(oparg_T *oap, int c, int dir, int count, bool fixindent)
⋮----
void ins_mouse(int c)
⋮----
void do_mousescroll(cmdarg_T *cap)
⋮----
void ins_mousescroll(int dir)
⋮----
bool cmdline_mousescroll(int dir)
⋮----
bool is_mouse_key(int c)
⋮----
static bool mouse_model_popup(void)
⋮----
... (32 lines truncated)
</file>

<file path="src/nvim/mouse.h">

</file>

<file path="src/nvim/move.c">
} lineoff_T;
⋮----
static int adjust_plines_for_skipcol(win_T *wp)
⋮----
int plines_correct_topline(win_T *wp, linenr_T lnum, linenr_T *nextp, bool limit_winheight,
⋮----
static void comp_botline(win_T *wp)
⋮----
static void redraw_for_cursorline(win_T *wp)
⋮----
static void redraw_for_cursorcolumn(win_T *wp)
⋮----
void set_valid_virtcol(win_T *wp, colnr_T vcol)
⋮----
int sms_marker_overlap(win_T *wp, int extra2)
⋮----
static int skipcol_from_plines(win_T *wp, int plines_off)
⋮----
static void reset_skipcol(win_T *wp)
⋮----
static bool use_scrolloffpad(win_T *wp)
⋮----
static bool scrolloffpad_eof_pressure(win_T *wp, linenr_T lnum, OptInt so)
⋮----
void update_topline(win_T *wp)
⋮----
static int scrolljump_value(win_T *wp)
⋮----
static bool check_top_offset(win_T *wp)
⋮----
... (94 lines truncated)
</file>

<file path="src/nvim/move.h">

</file>

<file path="src/nvim/normal_defs.h">
} MotionType;
⋮----
} oparg_T;
⋮----
} cmdarg_T;
⋮----
} VisualExtent;
⋮----
} VisualState;
⋮----
} visualinfo_T;
</file>

<file path="src/nvim/normal.c">
} NormalState;
⋮----
static inline void normal_state_init(NormalState *s)
⋮----
static const struct nv_cmd {
⋮----
static int nv_compare(const void *s1, const void *s2)
⋮----
void init_normal_cmds(void)
⋮----
bool nv_is(int cmdchar, int flags)
⋮----
static int find_command(int cmdchar)
⋮----
static bool check_text_locked(oparg_T *oap)
⋮----
bool check_text_or_curbuf_locked(oparg_T *oap)
⋮----
bool op_pending(void)
⋮----
void normal_enter(void)
⋮----
static void normal_prepare(NormalState *s)
⋮----
static bool normal_handle_special_visual_command(NormalState *s)
⋮----
static bool normal_need_additional_char(NormalState *s)
⋮----
static bool normal_need_redraw_mode_message(NormalState *s)
⋮----
... (355 lines truncated)
</file>

<file path="src/nvim/normal.h">

</file>

<file path="src/nvim/ops.c">
int get_op_type(int char1, int char2)
⋮----
int op_on_lines(int op)
⋮----
int op_is_change(int op)
⋮----
bool op_redoable(int op, bool redo_yank)
⋮----
int get_op_char(int optype)
⋮----
int get_extra_op_char(int optype)
⋮----
void op_shift(oparg_T *oap, bool curs_top, int amount)
⋮----
static int get_vts(const int *vts_array, int index)
⋮----
static int get_vts_sum(const int *vts_array, int index)
⋮----
static int64_t get_new_sw_indent(bool left, bool round, int64_t amount, int64_t sw_val)
⋮----
static int64_t get_new_vts_indent(bool left, bool round, int amount, int *vts_array)
⋮----
void shift_line(bool left, bool round, int amount, int call_changed_bytes)
⋮----
static void shift_block(oparg_T *oap, int amount)
⋮----
static void block_insert(oparg_T *oap, const char *s, size_t slen, bool b_insert,
⋮----
int op_delete(oparg_T *oap)
⋮----
... (68 lines truncated)
</file>

<file path="src/nvim/ops.h">

</file>

<file path="src/nvim/option_defs.h">
} OptFlags;
⋮----
} OptScope;
⋮----
typedef uint8_t OptScopeFlags;
⋮----
} OptSchemaKind;
⋮----
} OptSchemaItem;
⋮----
} OptDictSchema;
⋮----
} set_op_T;
⋮----
} optset_T;
⋮----
} optexpand_T;
⋮----
} vimoption_T;
</file>

<file path="src/nvim/option_vars.h">
EXTERN char empty_string_option[] INIT( = "");
⋮----
// The following are actual variables for the options
⋮----
EXTERN char *p_ambw;             ///< 'ambiwidth'
EXTERN int p_acd;                ///< 'autochdir'
EXTERN int p_ai;                 ///< 'autoindent'
EXTERN int p_bin;                ///< 'binary'
EXTERN int p_bomb;               ///< 'bomb'
EXTERN int p_bl;                 ///< 'buflisted'
EXTERN int p_cin;                ///< 'cindent'
EXTERN OptInt p_channel;         ///< 'channel'
EXTERN char *p_cink;             ///< 'cinkeys'
EXTERN char *p_cinsd;            ///< 'cinscopedecls'
EXTERN char *p_cinw;             ///< 'cinwords'
EXTERN Callback p_cfu;          ///< 'completefunc'
EXTERN Callback p_ofu;          ///< 'omnifunc'
EXTERN Callback p_tsrfu;        ///< 'thesaurusfunc'
EXTERN int p_ci;                 ///< 'copyindent'
EXTERN int p_ar;                 ///< 'autoread'
EXTERN int p_aw;                 ///< 'autowrite'
EXTERN int p_awa;                ///< 'autowriteall'
EXTERN char *p_bs;               ///< 'backspace'
EXTERN char *p_bg;               ///< 'background'
EXTERN int p_bk;                 ///< 'backup'
EXTERN char *p_bkc;              ///< 'backupcopy'
EXTERN unsigned bkc_flags;       ///< flags from 'backupcopy'
EXTERN char *p_bdir;             ///< 'backupdir'
EXTERN char *p_bex;              ///< 'backupext'
EXTERN char *p_bo;               ///< 'belloff'
... (328 lines truncated)
</file>

<file path="src/nvim/option.c">
void set_init_tablocal(void)
⋮----
static void set_init_default_shell(void)
⋮----
static void set_init_default_backupskip(void)
⋮----
/// Initialize the 'cdpath' option to a default value.
static void set_init_default_cdpath(void)
⋮----
/// Expand environment variables and things like "~" for the defaults.
/// If option_expand() returns non-NULL the variable is expanded.  This can
/// only happen for non-indirect options.
/// Also set the default to the expanded value, so ":set" does not list
/// them.
static void set_init_expand_env(void)
⋮----
set_option_varp(opt_idx, opt->var, ov);  // Copies `ov`.
change_option_default(opt_idx, ov);  // Consumes `ov`.
⋮----
/// Initialize the encoding used for "default" in 'fileencodings'.
static void set_init_fenc_default(void)
⋮----
void set_init_1(bool clean_arg)
⋮----
Object get_option_default(const OptIndex opt_idx, int opt_flags)
⋮----
static void alloc_options_default(void)
⋮----
static void change_option_default(const OptIndex opt_idx, Object value)
⋮----
... (630 lines truncated)
</file>

<file path="src/nvim/option.h">
} OptionSetFlags;
⋮----
} set_prefix_T;
⋮----
static inline const char *optval_type_name(const ObjectType type)
</file>

<file path="src/nvim/options.lua">
-- vim: tw=78

--- @class vim.option_meta
--- @field abbreviation? string
--- @field alias? string|string[]
--- Defaults to 'did_set_str_generic' when `flags_varname` is present.
--- @field cb? string Applies the stored value and updates derived state.
--- @field validation_cb? string Checks a candidate value without side effects.
--- @field defaults? vim.option_defaults|vim.option_value|fun(): string
--- @field deny_duplicates? boolean
--- @field desc? string
--- @field enable_if? string
--- @field expand? string|true
--- If not provided and `values` is present, then is set to 'expand_set_str_generic'
--- @field expand_cb? string
--- @field flags_varname? string
--- @field full_name string
--- @field immutable? boolean
--- @field list? 'comma'|'onecomma'|'commacolon'|'onecommacolon'|'flags'|'flagscomma'
--- @field modelineexpr? true
--- @field no_mkrc? true
--- @field nodefault? true
--- @field noglob? true
--- @field normal_dname_chars? true
--- @field normal_fname_chars? true
--- @field pri_mkrc? true
--- @field redraw? vim.option_redraw[]
--- @field schema? vim.option_schema
--- @field scope vim.option_scope[]
--- @field secure? true
... (11390 lines truncated)
</file>

<file path="src/nvim/optionstr.c">
} StlScopeType;
⋮----
void didset_string_options(void)
⋮----
static const char *illegal_char(const CharBuf *errbuf, int c)
⋮----
/// Check string options in a buffer for NULL value.
void check_buf_options(buf_T *buf)
⋮----
/// Free the string allocated for an option.
/// Checks for the string being empty_string_option. This may happen if we're out of memory,
/// xstrdup() returned NULL, which was replaced by empty_string_option by check_options().
void free_string_option(char *p)
⋮----
void clear_string_option(char **pp)
⋮----
void check_string_option(char **pp)
⋮----
/// Return true if "val" is a valid 'filetype' name.
⋮----
static bool valid_filetype(const char *val)
⋮----
int check_signcolumn(char *scl, win_T *wp)
⋮----
static const char *check_stl_str_adv_scope(char **s, const CharBuf *errbuf, StlScopeType scope_type)
⋮----
const char *check_stl_option(char *s, const CharBuf *errbuf)
⋮----
bool check_illegal_path_names(char *val, uint32_t flags)
⋮----
... (299 lines truncated)
</file>

<file path="src/nvim/optionstr.h">
} CharsOption;
</file>

<file path="src/nvim/path.c">
bool path_equal(const char *s1, const char *s2, PathCmpFlags flags)
⋮----
char *path_tail(const char *fname)
⋮----
// Find last part of path.
⋮----
/// Get pointer to tail of "fname", including path separators.
⋮----
char *path_tail_with_sep(char *fname)
⋮----
const char *invocation_path_tail(const char *invocation, size_t *len)
⋮----
/// Get the next separator-delimited component of a path name.
///
/// @param fname A file path. (Must be != NULL.)
/// @return Pointer to first found path separator + 1.
/// An empty string, if `fname` doesn't contain a path separator,
const char *path_next_component(const char *fname)
⋮----
/// Advances past consecutive path separators.
⋮----
/// @param path   Position in a path.
/// @param colon  Whether ':' counts as a separator on MS-Windows (see vim_ispathsep()).
/// @return  Pointer to the first non-separator byte (or terminating NUL).
char *path_skip_sep(const char *path, bool colon)
⋮----
/// Returns the length of the path head on the current platform.
/// @return
///   - 3 on windows
///   - 1 otherwise
... (283 lines truncated)
</file>

<file path="src/nvim/path.h">
} PathCmpFlags;
</file>

<file path="src/nvim/plines.c">
int win_chartabsize(win_T *wp, char *p, colnr_T col)
⋮----
int linetabsize_col(int startvcol, char *s)
⋮----
int linetabsize(win_T *wp, linenr_T lnum)
⋮----
int linetabsize_eol(win_T *wp, linenr_T lnum)
⋮----
CSType init_charsize_arg(CharsizeArg *csarg, win_T *wp, linenr_T lnum, char *line)
⋮----
CSType init_charsize_arg_skip_cur_text(CharsizeArg *csarg, win_T *wp, linenr_T lnum, char *line)
⋮----
static int inline_virt_text_width(win_T *wp, MarkTreeIter *iter, int row, int col)
⋮----
CharSize charsize_regular(CharsizeArg *csarg, char *const cur, colnr_T const vcol,
⋮----
static inline CharSize charsize_fast_impl(win_T *const wp, const char *cur, bool use_tabstop,
⋮----
CharSize charsize_fast(CharsizeArg *csarg, const char *cur, colnr_T vcol, int32_t cur_char,
⋮----
int charsize_nowrap(buf_T *buf, const char *cur, bool use_tabstop, colnr_T vcol, int32_t cur_char,
⋮----
static bool in_win_border(win_T *wp, colnr_T vcol)
⋮----
int linesize_regular(CharsizeArg *const csarg, int vcol_arg, colnr_T const len)
⋮----
int linesize_fast(CharsizeArg const *const csarg, int vcol_arg, colnr_T const len)
⋮----
static int virt_text_cursor_off(const CharsizeArg *csarg, bool on_NUL)
⋮----
... (30 lines truncated)
</file>

<file path="src/nvim/plines.h">
typedef bool CSType;
⋮----
} CharsizeArg;
⋮----
} CharSize;
⋮----
static inline CharSize win_charsize(CSType cstype, int vcol, char *ptr, int32_t chr,
⋮----
static inline int linetabsize_str(char *s)
⋮----
static inline int win_linetabsize(win_T *wp, linenr_T lnum, char *line, colnr_T len)
</file>

<file path="src/nvim/popupmenu.c">
static void pum_compute_size(void)
⋮----
static void pum_compute_vertical_placement(int size, win_T *target_win, int pum_win_row,
⋮----
static bool set_pum_width_aligned_with_cursor(int width, int available_width)
⋮----
static void pum_compute_horizontal_placement(win_T *target_win, int cursor_col, int border_width)
⋮----
static inline int pum_border_width(void)
⋮----
void pum_display(pumitem_T *array, int size, int selected, bool array_changed, int cmd_startcol)
⋮----
static int *pum_compute_text_attrs(char *text, hlf_T hlf, int user_hlattr)
⋮----
static void pum_grid_puts_with_attrs(int col, int cells, const char *text, int textlen,
⋮----
static inline void pum_align_order(int *order)
⋮----
static inline char *pum_get_item(int index, int type)
⋮----
static inline int pum_user_attr_combine(int idx, int type, int attr)
⋮----
void pum_redraw(void)
⋮----
static void pum_preview_set_text(win_T *win, char *info, linenr_T *lnum, int *max_width)
⋮----
static bool pum_adjust_info_position(win_T *wp, int width)
⋮----
win_T *pum_set_info(int selected, char *info)
⋮----
... (36 lines truncated)
</file>

<file path="src/nvim/popupmenu.h">
} pumitem_T;
⋮----
EXTERN ScreenGrid pum_grid INIT( = SCREEN_GRID_INIT);
</file>

<file path="src/nvim/pos_defs.h">
typedef int32_t linenr_T;
⋮----
typedef int colnr_T;
⋮----
} pos_T;
⋮----
} lpos_T;
</file>

<file path="src/nvim/profile.c">
} sn_prl_T;
⋮----
proftime_T profile_start(void) FUNC_ATTR_WARN_UNUSED_RESULT
⋮----
proftime_T profile_end(proftime_T tm) FUNC_ATTR_WARN_UNUSED_RESULT
⋮----
const char *profile_msg(proftime_T tm) FUNC_ATTR_WARN_UNUSED_RESULT
⋮----
proftime_T profile_setlimit(int64_t msec) FUNC_ATTR_WARN_UNUSED_RESULT
⋮----
bool profile_passed_limit(proftime_T tm) FUNC_ATTR_WARN_UNUSED_RESULT
⋮----
proftime_T profile_zero(void) FUNC_ATTR_CONST
⋮----
proftime_T profile_divide(proftime_T tm, int count) FUNC_ATTR_CONST
⋮----
proftime_T profile_add(proftime_T tm1, proftime_T tm2) FUNC_ATTR_CONST
⋮----
proftime_T profile_sub(proftime_T tm1, proftime_T tm2) FUNC_ATTR_CONST
⋮----
proftime_T profile_self(proftime_T self, proftime_T total, proftime_T children)
⋮----
static proftime_T profile_get_wait(void) FUNC_ATTR_PURE
⋮----
void profile_set_wait(proftime_T wait)
⋮----
proftime_T profile_sub_wait(proftime_T tm, proftime_T tma) FUNC_ATTR_PURE
⋮----
static bool profile_equal(proftime_T tm1, proftime_T tm2) FUNC_ATTR_CONST
⋮----
... (70 lines truncated)
</file>

<file path="src/nvim/profile.h">

</file>

<file path="src/nvim/quickfix.c">
struct dir_stack_T {
⋮----
typedef struct qfline_S qfline_T;
struct qfline_S {
⋮----
} qfltype_T;
⋮----
} qf_list_T;
⋮----
struct qf_info_S {
⋮----
typedef struct efm_S efm_T;
struct efm_S {
⋮----
typedef struct qf_delq_S {
⋮----
} qf_delq_T;
⋮----
} qfstate_T;
⋮----
} qffields_T;
⋮----
} vgr_args_T;
⋮----
static garray_T *qfga_get(void)
⋮----
static void qfga_clear(void)
⋮----
static int qf_init_process_nextline(qf_list_T *qfl, efm_T *fmt_first, qfstate_T *state,
⋮----
... (509 lines truncated)
</file>

<file path="src/nvim/quickfix.h">

</file>

<file path="src/nvim/README.md">
## Moved to:

- [dev_arch.txt](../../runtime/doc/dev_arch.txt)
- [dev_tools.txt](../../runtime/doc/dev_tools.txt)
- [dev.txt](../../runtime/doc/dev.txt)
</file>

<file path="src/nvim/regexp_defs.h">
typedef struct regengine regengine_T;
⋮----
} regmmatch_T;
⋮----
} magic_T;
⋮----
} regmatch_T;
⋮----
} reg_extmatch_T;
</file>

<file path="src/nvim/regexp.c">
} reg_getline_flags_T;
⋮----
struct regprog {
⋮----
} bt_regprog_T;
⋮----
typedef struct nfa_state nfa_state_T;
struct nfa_state {
⋮----
} nfa_regprog_T;
⋮----
struct regengine {
⋮----
} regsave_T;
⋮----
} save_se_T;
⋮----
typedef enum regstate_E {
⋮----
} regstate_T;
⋮----
typedef struct regitem_S {
⋮----
} regitem_T;
⋮----
typedef struct regbehind_S {
⋮----
} regbehind_T;
⋮----
typedef union Ptrlist Ptrlist;
... (569 lines truncated)
</file>

<file path="src/nvim/regexp.h">

</file>

<file path="src/nvim/register_defs.h">
enum GRegFlags {
⋮----
struct block_def {
⋮----
} yankreg_T;
⋮----
} yreg_mode_t;
</file>

<file path="src/nvim/register.c">
int get_unname_register(void)
⋮----
yankreg_T *get_y_register(int reg)
⋮----
yankreg_T *get_y_previous(void)
⋮----
int get_expr_register(void)
⋮----
void set_expr_line(char *new_line)
⋮----
char *get_expr_line(void)
⋮----
char *get_expr_line_src(void)
⋮----
bool valid_yank_reg(int regname, bool writing)
⋮----
int get_default_register_name(void)
⋮----
const void *op_reg_iter(const void *const iter, const yankreg_T *const regs, char *const name,
⋮----
const void *op_global_reg_iter(const void *const iter, char *const name, yankreg_T *const reg,
⋮----
Timestamp reg_max_ts(bool clipboard)
⋮----
size_t op_reg_amount(void)
⋮----
bool op_reg_set(const char name, const yankreg_T reg, bool is_unnamed)
⋮----
const yankreg_T *op_reg_get(const char name)
⋮----
... (187 lines truncated)
</file>

<file path="src/nvim/register.h">
EXTERN garray_T last_insert_ga INIT( = { 0, 0, 1, 64, NULL });
EXTERN int add_last_insert INIT( = 0);
⋮----
static inline bool is_literal_register(const int regname)
⋮----
static inline int op_reg_index(const int regname)
⋮----
static inline bool is_append_register(int regname)
⋮----
static inline int get_register_name(int num)
⋮----
static inline bool reg_empty(const yankreg_T *const reg)
</file>

<file path="src/nvim/runtime_defs.h">
} etype_T;
⋮----
} estack_T;
⋮----
} estack_arg_T;
⋮----
} scriptvar_T;
⋮----
} scriptitem_T;
</file>

<file path="src/nvim/runtime.c">
} source_cookie_T;
⋮----
} SearchPathItem;
⋮----
typedef kvec_t(SearchPathItem) RuntimeSearchPath;
typedef kvec_t(char *) CharVec;
⋮----
void estack_init(void)
⋮----
estack_T *estack_push(etype_T type, char *name, linenr_T lnum)
⋮----
void estack_push_ufunc(ufunc_T *ufunc, linenr_T lnum)
⋮----
void estack_pop(void)
⋮----
char *estack_sfile(estack_arg_T which)
⋮----
// For the bottom entry of <sfile>: do not add the line number, it is used in
// <slnum>.  Also leave it out when the number is not set.
⋮----
// Only NUL-terminate when not returning NULL.
⋮----
static void stacktrace_push_item(list_T *const l, ufunc_T *const fp, const char *const event,
⋮----
list_T *stacktrace_create(void)
⋮----
/// getstacktrace() function
void f_getstacktrace(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void runtime_init(void)
... (311 lines truncated)
</file>

<file path="src/nvim/runtime.h">

</file>

<file path="src/nvim/search_defs.h">
} SearchState;
</file>

<file path="src/nvim/search.c">
} SearchedFile;
⋮----
int search_regcomp(char *pat, size_t patlen, char **used_pat, int pat_save, int pat_use,
⋮----
char *get_search_pat(void)
⋮----
void save_re_pat(int idx, char *pat, size_t patlen, int magic)
⋮----
void save_search_patterns(void)
⋮----
void restore_search_patterns(void)
⋮----
static inline void free_spat(SearchPattern *const spat)
⋮----
void free_search_patterns(void)
⋮----
void save_last_search_pattern(void)
⋮----
void restore_last_search_pattern(void)
⋮----
static void save_incsearch_state(void)
⋮----
static void restore_incsearch_state(void)
⋮----
char *last_search_pattern(void)
⋮----
size_t last_search_pattern_len(void)
⋮----
int ignorecase(char *pat)
⋮----
... (160 lines truncated)
</file>

<file path="src/nvim/search.h">
} SearchOffset;
⋮----
} SearchPattern;
⋮----
} searchit_arg_T;
⋮----
} searchstat_T;
</file>

<file path="src/nvim/sha256.c">
void sha256_start(context_sha256_T *ctx)
⋮----
static void sha256_process(context_sha256_T *ctx, const uint8_t data[SHA256_BUFFER_SIZE])
⋮----
void sha256_update(context_sha256_T *ctx, const uint8_t *input, size_t length)
⋮----
void sha256_finish(context_sha256_T *ctx, uint8_t digest[SHA256_SUM_SIZE])
⋮----
const char *sha256_bytes(const uint8_t *restrict buf,  size_t buf_len, const uint8_t *restrict salt,
⋮----
bool sha256_self_test(void)
</file>

<file path="src/nvim/sha256.h">
} context_sha256_T;
</file>

<file path="src/nvim/shada.c">
} ShadaEntryType;
⋮----
} ShaDaReadResult;
⋮----
} ShaDaWriteResult;
⋮----
enum SRNIFlags {
⋮----
struct shada_filemark {
⋮----
struct history_item {
⋮----
struct reg {
⋮----
struct global_var {
⋮----
struct sub_string {
⋮----
struct buffer_list {
⋮----
struct buffer_list_buffer {
⋮----
} ShadaEntry;
⋮----
typedef struct hm_llist_entry {
⋮----
} HMLListEntry;
⋮----
} HMLList;
⋮----
... (185 lines truncated)
</file>

<file path="src/nvim/shada.h">
} ShaDaReadFileFlags;
</file>

<file path="src/nvim/sign_defs.h">
} SignTextAttrs;
⋮----
} sign_T;
⋮----
} SignItem;
</file>

<file path="src/nvim/sign.c">
static int64_t group_get_ns(const char *group)
⋮----
static const char *sign_get_name(DecorSignHighlight *sh)
⋮----
/// Create or update a sign extmark.
///
/// @param buf  buffer to store sign in
/// @param id  sign ID
/// @param group  sign group
/// @param prio  sign priority
/// @param lnum  line number which gets the mark
/// @param sp  sign properties
static void buf_set_sign(buf_T *buf, uint32_t *id, char *group, int prio, linenr_T lnum, sign_T *sp)
⋮----
/// For an existing, placed sign with "id", modify the sign, group or priority.
⋮----
static linenr_T buf_mod_sign(buf_T *buf, uint32_t *id, char *group, int prio, sign_T *sp)
⋮----
static int buf_findsign(buf_T *buf, int id, char *group)
⋮----
static int sign_row_cmp(const void *p1, const void *p2)
⋮----
static int buf_delete_signs(buf_T *buf, char *group, int id, linenr_T atlnum)
⋮----
bool buf_has_signs(const buf_T *buf)
⋮----
static void sign_list_placed(buf_T *rbuf, char *group)
⋮----
static int sign_cmd_idx(char *begin_cmd, char *end_cmd)
⋮----
... (130 lines truncated)
</file>

<file path="src/nvim/sign.h">

</file>

<file path="src/nvim/spell_defs.h">
typedef int idx_T;
⋮----
} fromto_T;
⋮----
} salitem_T;
⋮----
typedef int salfirst_T;
⋮----
typedef struct slang_S slang_T;
⋮----
struct slang_S {
⋮----
} langp_T;
⋮----
} spelltab_T;
⋮----
} SpellAddType;
⋮----
} wordcount_T;
</file>

<file path="src/nvim/spell.c">
} matchinf_T;
⋮----
} spelload_T;
⋮----
} syl_item_T;
⋮----
size_t spell_check(win_T *wp, char *ptr, hlf_T *attrp, int *capcol, bool docount)
⋮----
static int get_char_type(int c)
⋮----
static char *advance_camelcase_word(char *str, win_T *wp, bool *is_camel_case)
⋮----
static void find_word(matchinf_T *mip, int mode)
⋮----
bool match_checkcompoundpattern(char *ptr, int wlen, garray_T *gap)
⋮----
bool can_compound(slang_T *slang, const char *word, const uint8_t *flags)
⋮----
bool match_compoundrule(slang_T *slang, const uint8_t *compflags)
⋮----
int valid_word_prefix(int totprefcnt, int arridx, int flags, char *word, slang_T *slang,
⋮----
static void find_prefix(matchinf_T *mip, int mode)
⋮----
static int fold_more(matchinf_T *mip)
⋮----
bool spell_valid_case(int wordflags, int treeflags)
⋮----
bool spell_check_window(win_T *wp)
⋮----
... (120 lines truncated)
</file>

<file path="src/nvim/spell.h">
} smt_T;
</file>

<file path="src/nvim/spellfile.c">
} afffile_T;
⋮----
typedef struct affentry_S affentry_T;
⋮----
struct affentry_S {
⋮----
} affheader_T;
⋮----
} compitem_T;
⋮----
typedef struct sblock_S sblock_T;
struct sblock_S {
⋮----
typedef struct wordnode_S wordnode_T;
struct wordnode_S {
⋮----
} spellinfo_T;
⋮----
static inline int spell_check_magic_string(FILE *const fd)
⋮----
slang_T *spell_load_file(char *fname, char *lang, slang_T *old_lp, bool silent)
⋮----
static void tree_count_words(const uint8_t *byts, int byts_len, idx_T *idxs)
⋮----
void suggest_load_files(void)
⋮----
static char *read_cnt_string(FILE *fd, int cnt_bytes, int *cntp)
⋮----
static int read_region_section(FILE *fd, slang_T *lp, int len)
⋮----
... (252 lines truncated)
</file>

<file path="src/nvim/spellfile.h">

</file>

<file path="src/nvim/spellsuggest.c">
} suginfo_T;
⋮----
} suggest_T;
⋮----
} state_T;
⋮----
} trystate_T;
⋮----
static bool can_be_compound(trystate_T *sp, slang_T *slang, uint8_t *compflags, int flag)
⋮----
static int score_wordcount_adj(slang_T *slang, int score, char *word, bool split)
⋮----
static int badword_captype(char *word, char *end)
⋮----
static int bytes2offset(char **pp)
⋮----
int spell_check_sps(void)
⋮----
static void select_spell_suggestion(suginfo_T *sug)
⋮----
void spell_suggest(int count)
⋮----
void spell_suggest_list(garray_T *gap, char *word, int maxcount, bool need_cap, bool interactive)
⋮----
static void spell_find_suggest(char *badptr, int badlen, suginfo_T *su, int maxcount,
⋮----
static void spell_suggest_expr(suginfo_T *su, char *expr)
⋮----
static void spell_suggest_file(suginfo_T *su, char *fname)
⋮----
... (64 lines truncated)
</file>

<file path="src/nvim/spellsuggest.h">

</file>

<file path="src/nvim/state_defs.h">
typedef struct vim_state VimState;
⋮----
struct vim_state {
</file>

<file path="src/nvim/state.c">
void state_enter(VimState *s)
⋮----
void state_handle_k_event(void)
⋮----
bool virtual_active(win_T *wp)
⋮----
int get_real_state(void)
⋮----
void get_mode(char *buf)
⋮----
void may_trigger_modechanged(void)
⋮----
static bool is_safe_now(void)
⋮----
void may_trigger_safestate(bool safe)
⋮----
void state_no_longer_safe(const char *reason)
⋮----
bool get_was_safe_state(void)
</file>

<file path="src/nvim/state.h">

</file>

<file path="src/nvim/statusline_defs.h">
} StlFlag;
⋮----
} StlClickDefinition;
⋮----
} StcClick;
⋮----
} StlClickRecord;
⋮----
typedef struct stl_hlrec stl_hlrec_t;
struct stl_hlrec {
⋮----
typedef struct stl_item stl_item_t;
struct stl_item {
⋮----
} statuscol_T;
</file>

<file path="src/nvim/statusline.c">
} StlPadding;
⋮----
} NumberBase;
⋮----
void win_redr_status(win_T *wp)
⋮----
void get_trans_bufname(buf_T *buf)
⋮----
bool stl_connected(win_T *wp)
⋮----
void stl_clear_click_defs(StlClickDefinition *const click_defs, const size_t click_defs_size)
⋮----
StlClickDefinition *stl_alloc_click_defs(StlClickDefinition *cdp, int width, size_t *size)
⋮----
void stl_fill_click_defs(StlClickDefinition *click_defs, StlClickRecord *click_recs,
⋮----
static void win_redr_stl_expr(win_T *wp, bool draw_winbar, bool draw_ruler, bool ui_event)
⋮----
void win_redr_winbar(win_T *wp)
⋮----
void redraw_ruler(void)
⋮----
schar_T fillchar_status(hlf_T *group, win_T *wp)
⋮----
static void ui_ext_tabline_update(void)
⋮----
void draw_tabline(void)
⋮----
int build_statuscol_str(win_T *wp, linenr_T lnum, int relnum, int virtnum, CharBuf buf,
⋮----
... (6 lines truncated)
</file>

<file path="src/nvim/statusline.h">
EXTERN size_t tab_page_click_defs_size INIT( = 0);
</file>

<file path="src/nvim/strings.c">
char *xstrnsave(const char *string, size_t len)
⋮----
char *vim_strsave_escaped(const char *string, const char *esc_chars)
⋮----
// Same as vim_strsave_escaped(), but when "bsl" is true also escape
// characters where rem_backslash() would remove the backslash.
// Escape the characters with "cc".
char *vim_strsave_escaped_ext(const char *string, const char *esc_chars, char cc, bool bsl)
⋮----
// First count the number of backslashes required.
// Then allocate the memory and insert them.
size_t length = 1;                    // count the trailing NUL
⋮----
length += l;                      // count a multibyte char
⋮----
length++;                         // count a backslash
⋮----
length++;                           // count an ordinary char
⋮----
p += l - 1;                     // skip multibyte char
⋮----
/// Save a copy of an unquoted string
///
/// Turns string like `a\bc"def\"ghi\\\n"jkl` into `a\bcdef"ghi\\njkl`, for use
/// in shell_build_argv: the only purpose of backslash is making next character
/// be treated literally inside the double quotes, if this character is
/// backslash or quote.
⋮----
/// @param[in]  string  String to copy.
/// @param[in]  length  Length of the string to copy.
... (281 lines truncated)
</file>

<file path="src/nvim/strings.h">
} keyvalue_T;
⋮----
static inline char *strappend(char *const dst, const char *const src)
</file>

<file path="src/nvim/syntax_defs.h">
struct sp_syn {
⋮----
typedef struct keyentry keyentry_T;
⋮----
struct keyentry {
⋮----
} bufstate_T;
⋮----
struct syn_state {
</file>

<file path="src/nvim/syntax.c">
} synpat_T;
⋮----
} syn_cluster_T;
⋮----
} stateitem_T;
⋮----
} syn_opt_arg_T;
⋮----
} idl_entry_T;
⋮----
} time_entry_T;
⋮----
void syn_set_timeout(proftime_T *tm)
⋮----
void syntax_start(win_T *wp, linenr_T lnum)
⋮----
static void clear_syn_state(synstate_T *p)
⋮----
static void clear_current_state(void)
⋮----
static void syn_sync(win_T *wp, linenr_T start_lnum, synstate_T *last_valid)
⋮----
// set cursor to start of search
⋮----
// If the line is inside a comment, need to find the syntax item that
// defines the comment.
// Restrict the search for the end of a comment to b_syn_sync_maxlines.
⋮----
// restore cursor and buffer
⋮----
... (336 lines truncated)
</file>

<file path="src/nvim/syntax.h">

</file>

<file path="src/nvim/tag.c">
} tagptrs_T;
⋮----
} pat_T;
⋮----
} tagcmd_T;
⋮----
} tags_read_status_T;
⋮----
} tagsearch_state_T;
⋮----
} tagsearch_info_T;
⋮----
} tagmatch_status_T;
⋮----
} findtags_match_args_T;
⋮----
} findtags_state_T;
⋮----
void free_tagfunc_option(void)
⋮----
bool set_ref_in_tagfunc(int copyID)
⋮----
void do_tag(exarg_T *eap, char *tag, int type, int count, int forceit, bool verbose)
⋮----
msg_scroll = true;  // Don't overwrite this message.
⋮----
// Let the SwapExists event know what tag we are jumping to.
⋮----
static void select_tag_match(exarg_T *eap, bool new_tag, bool use_tagstack, int num_matches,
⋮----
... (106 lines truncated)
</file>

<file path="src/nvim/tag.h">
} tagname_T;
</file>

<file path="src/nvim/terminal.c">
} TerminalState;
⋮----
} ScrollbackLine;
⋮----
struct terminal {
⋮----
static void emit_termrequest(void **argv)
⋮----
// Terminal buffer closed during TermRequest in Normal mode: destroy the terminal.
// In Terminal mode term->refcount should still be non-zero here.
⋮----
static void schedule_termrequest(Terminal *term)
⋮----
static int parse_osc8(const char *str, int *attr)
⋮----
// Parse the URI from the OSC 8 sequence and add the URL to our URL set.
// Skip the ID, we don't use it (for now)
⋮----
// Invalid OSC sequence
⋮----
// Move past the semicolon
⋮----
// Empty OSC 8, no URL
⋮----
static int on_osc(int command, VTermStringFragment frag, void *user)
⋮----
static int on_dcs(const char *command, size_t commandlen, VTermStringFragment frag, void *user)
⋮----
static int on_apc(VTermStringFragment frag, void *user)
⋮----
... (132 lines truncated)
</file>

<file path="src/nvim/terminal.h">
} TerminalOptions;
</file>

<file path="src/nvim/testing.c">
} assert_type_T;
⋮----
static void prepare_assert_error(garray_T *gap)
⋮----
static void ga_concat_esc(garray_T *gap, const char *p, int clen)
⋮----
/// Append "str" to "gap", escaping unprintable characters.
/// Changes NL to \n, CR to \r, etc.
static void ga_concat_shorten_esc(garray_T *gap, const char *str)
⋮----
/// Fill "gap" with information about an assert error.
static void fill_assert_error(garray_T *gap, typval_T *opt_msg_tv, const char *exp_str,
⋮----
// When comparing dictionaries, drop the items that are equal, so that
// it's a lot easier to see what differs.
⋮----
static int assert_equal_common(typval_T *argvars, assert_type_T atype)
⋮----
static int assert_match_common(typval_T *argvars, assert_type_T atype)
⋮----
static int assert_bool(typval_T *argvars, bool is_true)
⋮----
static void assert_append_cmd_or_arg(garray_T *gap, typval_T *argvars, const char *cmd)
⋮----
static int assert_beeps(typval_T *argvars, bool no_beep)
⋮----
void f_assert_beeps(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
void f_assert_nobeep(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
⋮----
... (30 lines truncated)
</file>

<file path="src/nvim/testing.h">

</file>

<file path="src/nvim/textformat.c">
bool has_format_option(int x)
⋮----
void internal_format(int textwidth, int second_indent, int flags, bool format_only, int c)
⋮----
static int fmt_check_par(linenr_T lnum, int *leader_len, char **leader_flags, bool do_comments)
⋮----
static bool ends_in_white(linenr_T lnum)
⋮----
static bool same_leader(linenr_T lnum, int leader1_len, char *leader1_flags, int leader2_len,
⋮----
static bool paragraph_start(linenr_T lnum)
⋮----
void auto_format(bool trailblank, bool prev_line)
⋮----
void check_auto_format(bool end_insert)
⋮----
int comp_textwidth(bool ff)
⋮----
void op_format(oparg_T *oap, bool keep_cursor)
⋮----
void op_formatexpr(oparg_T *oap)
⋮----
int fex_format(linenr_T lnum, long count, int c)
⋮----
void format_lines(linenr_T line_count, bool avoid_fex)
</file>

<file path="src/nvim/textformat.h">

</file>

<file path="src/nvim/textobject.c">
int findsent(Direction dir, int count)
⋮----
bool findpar(bool *pincl, int dir, int count, int what, bool both)
⋮----
static bool inmacro(char *opt, const char *s)
⋮----
bool startPS(linenr_T lnum, int para, bool both)
⋮----
static int cls(void)
⋮----
int fwd_word(int count, bool bigword, bool eol)
⋮----
int bck_word(int count, bool bigword, bool stop)
⋮----
int end_word(int count, bool bigword, bool stop, bool empty)
⋮----
int bckend_word(int count, bool bigword, bool eol)
⋮----
static bool skip_chars(int cclass, int dir)
⋮----
static void back_in_line(void)
⋮----
static void find_first_blank(pos_T *posp)
⋮----
static void findsent_forward(int count, bool at_start_sent)
⋮----
int current_word(oparg_T *oap, int count, bool include, bool bigword)
⋮----
int current_line(oparg_T *oap, bool include)
⋮----
... (39 lines truncated)
</file>

<file path="src/nvim/textobject.h">

</file>

<file path="src/nvim/types_defs.h">
typedef uint32_t schar_T;
typedef int32_t sattr_T;
⋮----
typedef int32_t sscratch_T;
⋮----
typedef int handle_T;
⋮----
typedef int LuaRef;
⋮----
typedef double float_T;
⋮----
typedef struct MsgpackRpcRequestHandler MsgpackRpcRequestHandler;
⋮----
} EvalFuncData;
⋮----
typedef handle_T NS;
⋮----
typedef uint64_t proftime_T;
⋮----
} TriState;
⋮----
typedef int64_t OptInt;
⋮----
typedef struct file_buffer buf_T;
typedef struct loop Loop;
typedef struct regprog regprog_T;
typedef struct syn_state synstate_T;
typedef struct terminal Terminal;
typedef struct window_S win_T;
typedef struct mtnode_s MTNode;
... (11 lines truncated)
</file>

<file path="src/nvim/ui_client.c">
// uncrustify:off
⋮----
uint64_t ui_client_start_server(const char *exepath, size_t argc, char **argv)
⋮----
void ui_client_attach(int width, int height, char *term, bool rgb)
⋮----
void ui_client_detach(void)
⋮----
void ui_client_run(void)
⋮----
void ui_client_stop(void)
⋮----
void ui_client_set_size(int width, int height)
⋮----
UIClientHandler ui_client_get_redraw_handler(const char *name, size_t name_len, Error *error)
⋮----
Object handle_ui_client_redraw(uint64_t channel_id, Array args, Arena *arena, Error *error)
⋮----
static HlAttrs ui_client_dict2hlattrs(Dict d, bool rgb)
⋮----
void ui_client_event_grid_resize(Array args)
⋮----
void ui_client_event_grid_line(Array args)
⋮----
void ui_client_event_raw_line(GridLineEvent *g)
⋮----
void ui_client_event_connect(Array args)
⋮----
static void channel_connect_event(void **argv)
⋮----
... (10 lines truncated)
</file>

<file path="src/nvim/ui_client.h">
EXTERN size_t grid_line_buf_size INIT( = 0);
⋮----
EXTERN uint64_t ui_client_channel_id INIT( = 0);
⋮----
EXTERN int ui_client_error_exit INIT( = -1);
⋮----
EXTERN int ui_client_exit_status INIT( = 0);
⋮----
EXTERN bool ui_client_attached INIT( = false);
⋮----
EXTERN bool ui_client_forward_stdin INIT( = false);
</file>

<file path="src/nvim/ui_compositor.c">
void ui_comp_init(void)
⋮----
void ui_comp_free_all_mem(void)
⋮----
void ui_comp_syn_init(void)
⋮----
void ui_comp_attach(RemoteUI *ui)
⋮----
void ui_comp_detach(RemoteUI *ui)
⋮----
bool ui_comp_should_draw(void)
⋮----
void ui_comp_layers_adjust(size_t layer_idx, bool raise)
⋮----
bool ui_comp_put_grid(ScreenGrid *grid, int row, int col, int height, int width, bool valid,
⋮----
void ui_comp_remove_grid(ScreenGrid *grid)
⋮----
bool ui_comp_set_grid(handle_T handle)
⋮----
void ui_comp_raise_grid(ScreenGrid *grid, size_t new_index)
⋮----
void ui_comp_grid_cursor_goto(Integer grid_handle, Integer r, Integer c)
⋮----
ScreenGrid *ui_comp_mouse_focus(int row, int col)
⋮----
ScreenGrid *ui_comp_get_grid_at_coord(int row, int col)
⋮----
static void compose_line(Integer row, Integer startcol, Integer endcol, LineFlags flags)
⋮----
... (20 lines truncated)
</file>

<file path="src/nvim/ui_compositor.h">

</file>

<file path="src/nvim/ui_defs.h">
} UIExtension;
⋮----
typedef int LineFlags;
⋮----
} RemoteUI;
⋮----
} UIClientHandler;
</file>

<file path="src/nvim/ui.c">
} UIEventCallback;
⋮----
static void ui_log(const char *funname)
⋮----
void ui_init(void)
⋮----
void ui_free_all_mem(void)
⋮----
bool ui_rgb_attached(void)
⋮----
bool ui_gui_attached(void)
⋮----
bool ui_override(void)
⋮----
size_t ui_active(void)
⋮----
void ui_refresh(void)
⋮----
int ui_pum_get_height(void)
⋮----
bool ui_pum_get_pos(double *pwidth, double *pheight, double *prow, double *pcol)
⋮----
static void ui_refresh_event(void **argv)
⋮----
void ui_schedule_refresh(void)
⋮----
void ui_default_colors_set(void)
⋮----
static void ui_may_set_default_colors(void)
⋮----
... (60 lines truncated)
</file>

<file path="src/nvim/ui.h">
EXTERN Array noargs INIT(= ARRAY_DICT_INIT);
⋮----
EXTERN uint32_t ui_event_ns_id INIT( = 0);
⋮----
EXTERN bool ui_refresh_cmdheight INIT( = true);
</file>

<file path="src/nvim/undo_defs.h">
typedef struct u_header u_header_T;
⋮----
typedef struct u_entry u_entry_T;
struct u_entry {
⋮----
struct u_header {
⋮----
} UndoCheckpoint;
</file>

<file path="src/nvim/undo.c">
} bufinfo_T;
⋮----
static void u_check_tree(u_header_T *uhp, u_header_T *exp_uh_next, u_header_T *exp_uh_alt_prev)
⋮----
static void u_check(int newhead_may_be_NULL)
⋮----
int u_save_cursor(void)
⋮----
int u_save(linenr_T top, linenr_T bot)
⋮----
int u_save_buf(buf_T *buf, linenr_T top, linenr_T bot)
⋮----
int u_savesub(linenr_T lnum)
⋮----
int u_inssub(linenr_T lnum)
⋮----
int u_savedel(linenr_T lnum, linenr_T nlines)
⋮----
bool undo_allowed(buf_T *buf)
⋮----
static OptInt get_undolevel(buf_T *buf)
⋮----
static inline void zero_fmark_additional_data(fmark_T *fmarks)
⋮----
int u_savecommon(buf_T *buf, linenr_T top, linenr_T bot, linenr_T newbot, bool reload)
⋮----
static bool u_entry_resized(buf_T *buf, u_entry_T *uep)
⋮----
void u_compute_hash(buf_T *buf, uint8_t *hash)
⋮----
... (138 lines truncated)
</file>

<file path="src/nvim/undo.h">

</file>

<file path="src/nvim/usercmd.c">
char *find_ucmd(exarg_T *eap, char *p, int *full, expand_T *xp, int *complp)
⋮----
const char *set_context_in_user_cmd(expand_T *xp, const char *arg_in)
⋮----
const char *set_context_in_user_cmdarg(const char *cmd FUNC_ATTR_UNUSED, const char *arg,
⋮----
p++;  // skip over escaped character
⋮----
char *expand_user_command_name(int idx)
⋮----
/// Function given to ExpandGeneric() to obtain the list of user command names.
char *get_user_commands(expand_T *xp FUNC_ATTR_UNUSED, int idx)
⋮----
// In cmdwin, the alternative buffer should be used.
⋮----
// global command is overruled by buffer-local one
⋮----
/// Get the name of user command "idx".  "cmdidx" can be CMD_USER or
/// CMD_USER_BUF.
///
/// @return  NULL if the command is not found.
char *get_user_command_name(int idx, int cmdidx)
⋮----
/// Function given to ExpandGeneric() to obtain the list of user address type names.
char *get_user_cmd_addr_type(expand_T *xp, int idx)
⋮----
/// Function given to ExpandGeneric() to obtain the list of user command
/// attributes.
char *get_user_cmd_flags(expand_T *xp, int idx)
⋮----
... (99 lines truncated)
</file>

<file path="src/nvim/usercmd.h">
} ucmd_T;
</file>

<file path="src/nvim/version.c">
bool has_nvim_version(const char *const version_str)
⋮----
int min_vim_version(void)
⋮----
int highest_patch(void)
⋮----
bool has_vim_patch(int n, int major_minor_version)
⋮----
void ex_version(exarg_T *eap)
⋮----
static void version_msg_wrap(char *s, bool wrap)
⋮----
static void version_msg(char *s)
⋮----
void list_in_columns(char **items, int size, int current)
⋮----
void list_lua_version(void)
⋮----
void list_version(void)
⋮----
bool may_show_intro(void)
⋮----
void intro_message(bool colon)
⋮----
/// Adds extra highlighting.
static void do_intro_line(int row, char *mesg, bool colon, bool is_logo)
⋮----
// Center the message horizontally.
⋮----
// Compute special highlighting attributes
... (3 lines truncated)
</file>

<file path="src/nvim/version.h">

</file>

<file path="src/nvim/vim_defs.h">
} Direction;
⋮----
} WorkingStatus;
⋮----
} CdScope;
⋮----
} CdCause;
</file>

<file path="src/nvim/vvars.lua">
local M = {}

M.vars = {
  argf = {
    type = 'string[]',
    desc = [=[
      File arguments (expanded to absolute paths) given at startup.

      Unlike |v:argv|, this does not include option arguments
      such as `-u`, `--cmd`, or `+cmd`. Unlike |argv()|, it is not
      affected by later |:args|, |:argadd|, or plugin modifications.

      Example: >
        nvim file1.txt +ls -- file2.txt
        :echo v:argf
        " ['/path/to/cwd/file1.txt', '/path/to/cwd/file2.txt']
      <
    ]=],
  },
  argv = {
    type = 'string[]',
    desc = [=[
      Command line arguments (`-u`, `--cmd`, `+cmd`, …) Nvim was
      invoked with.  The first item is the Nvim command.

      See |v:progpath| to get the full path to Nvim.
      See |v:argf| to get only file args, without other options.
    ]=],
  },
  char = {
... (984 lines truncated)
</file>

<file path="src/nvim/window_defs.h">
} viewstate_T;
</file>

<file path="src/nvim/window.c">
} wee_flags_T;
⋮----
void window_layout_lock(void)
⋮----
void window_layout_unlock(void)
⋮----
bool frames_locked(void)
⋮----
bool window_layout_locked(cmdidx_T cmd)
⋮----
bool window_layout_locked_err(cmdidx_T cmd, Error *err)
⋮----
static void log_frame_layout(frame_T *frame)
⋮----
bool check_can_set_curbuf_disabled(void)
⋮----
bool check_can_set_curbuf_forceit(int forceit)
⋮----
win_T *prevwin_curwin(void)
⋮----
win_T *swbuf_goto_win_with_buf(buf_T *buf)
⋮----
void do_window(int nchar, int Prenum, int xchar)
⋮----
static void cmd_with_count(char *cmd, char *bufp, size_t bufsize, int64_t Prenum)
⋮----
void win_set_buf(win_T *win, buf_T *buf, Error *err)
⋮----
int win_fdccol_count(win_T *wp)
⋮----
... (358 lines truncated)
</file>

<file path="src/nvim/window.h">
EXTERN int tabpage_move_disallowed INIT( = 0);
</file>

<file path="src/nvim/winfloat.c">
win_T *win_new_float(win_T *wp, bool last, WinConfig fconfig, Error *err)
⋮----
void win_set_minimal_style(win_T *wp)
⋮----
// statuscolumn: cleared
⋮----
// statusline: cleared (for floating windows)
⋮----
int win_border_height(win_T *wp)
⋮----
int win_border_width(win_T *wp)
⋮----
void win_config_float(win_T *wp, WinConfig fconfig)
⋮----
// Process statusline changes before applying new height from config
⋮----
// compute initial position
⋮----
// changing border style while keeping border only requires redrawing border
⋮----
static int float_zindex_cmp(const void *a, const void *b)
⋮----
void win_float_remove(bool bang, int count)
⋮----
void win_check_anchored_floats(win_T *win)
⋮----
// float might be anchored to moved window
⋮----
void win_float_update_statusline(void)
⋮----
... (24 lines truncated)
</file>

<file path="src/nvim/winfloat.h">

</file>

<file path="src/tee/tee.c">
static void usage(void)
⋮----
int main(int argc, char *argv[])
</file>

<file path="src/wasm/app.js">
const setStatus = (s)
const log = (...args) =>
⋮----
class UiState
⋮----
resize(gridId, width, height)
⋮----
clear(gridId)
⋮----
destroy(gridId)
⋮----
line(gridId, row, colStart, cells)
⋮----
scroll(gridId, top, bot, left, right, rows)
⋮----
setCursor(gridId, row, col)
⋮----
setMode(mode, modeIdx)
⋮----
setModeInfo(cursorStyleEnabled, modeInfo)
⋮----
defineHl(id, rgbAttr =
⋮----
setWindowViewport(gridId, winHandle, topline, botline)
⋮----
snapshot()
⋮----
function handleRedrawEvents(uiState, gridEl, modeEl, events)
⋮----
function paintGrid(uiState, gridEl, modeEl)
... (15 lines truncated)
</file>

<file path="src/wasm/index.html">
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>nvim.wasm RPC client</title>
    <link rel="stylesheet" href="style.css" />
    <style>
      #grid {
        font-family: "SFMono-Regular", Menlo, Consolas, monospace;
        font-size: 14px;
        line-height: 1.35;
        white-space: pre;
        background: #050912;
        color: #dfe5f1;
        border: 1px solid #2a3346;
        border-radius: 8px;
        padding: 8px;
        outline: none;
        overflow: auto;
      }
      #grid:focus {
        border-color: #5ad1ff;
      }
      .cursor {
        outline: 1px solid currentColor;
      }
      #bar {
        display: none;
      }
    </style>
... (17 lines truncated)
</file>

<file path="src/wasm/msgpack.js">
function registerNvimHandleTypes(types)
⋮----
unpack(payload)
pack(value)
⋮----
encode(value)
⋮----
decodeMultiple(bytes)
⋮----
function isIncompleteDataError(e)
</file>

<file path="src/wasm/msgpackrpc.js">
encodeRequest(msgid, method, params)
⋮----
encodeNotification(method, params)
⋮----
parseMessage(msg)
</file>

<file path="src/wasm/nvim-worker.js">
function safeStatus(text)
⋮----
function bumpFdWriteCount(fd)
⋮----
function unreadCount()
⋮----
function markReadable()
⋮----
function dumpFD(fd)
⋮----
function popByte()
⋮----
function pushBytes(bytes)
⋮----
function flushAll()
⋮----
function writeStderr(c)
⋮----
function makeArgv(M, args)
⋮----
self.onerror = (e) =>
⋮----
self.onunhandledrejection = (e) =>
⋮----
function installStdoutWrite(m, stdoutStream)
⋮----
function installStdinGetChar(m, stdinStream)
⋮----
self.onmessage = async (ev) =>
⋮----
... (20 lines truncated)
</file>

<file path="src/wasm/rpc.js">
class WorkerTransport
⋮----
this.worker.onmessage = (ev) =>
this.worker.onerror = (e)
⋮----
shutdown()
⋮----
_onWorkerMessage(msg)
⋮----
_emitStatus(text)
⋮----
send(bytes)
⋮----
onBytes(cb)
onStatus(cb)
onReady(cb)
onExit(cb)
persist()
⋮----
class RpcClient
⋮----
_handleBytes(newBytes)
⋮----
_dispatch(rawMsg)
⋮----
request(method, params = [])
⋮----
notify(method, params = [])
⋮----
on(method, handler)
... (1 lines truncated)
</file>

<file path="src/wasm/serve.py">
PORT = 8002
⋮----
ROOT = Path(__file__).resolve().parents[2]
⋮----
class Handler(http.server.SimpleHTTPRequestHandler)
⋮----
def end_headers(self)
⋮----
handler = partial(Handler, directory=str(ROOT))
</file>

<file path="src/wasm/wasm_stubs.c">
void uv__io_cb(uv_loop_t *loop, uv__io_t *w, unsigned events);
⋮----
uint64_t uv_get_free_memory(void)
⋮----
uint64_t uv_get_total_memory(void)
⋮----
uint64_t uv_get_available_memory(void)
⋮----
uint64_t uv_get_constrained_memory(void)
⋮----
void uv_loadavg(double avg[3])
⋮----
int uv_uptime(double *uptime)
⋮----
int uv_resident_set_memory(size_t *rss)
⋮----
int uv_exepath(char *buffer, size_t *size)
⋮----
int uv_cpu_info(uv_cpu_info_t * *cpu_infos, int *count)
⋮----
int uv_interface_addresses(uv_interface_address_t * *addresses, int *count)
⋮----
} uv_browser_shared_state_t;
⋮----
void *uv_browser_get_shared_state_ptr(void)
⋮----
void uv_browser_set_readable(int fd, int32_t nbytes)
⋮----
void uv_browser_set_writable(int fd, int32_t nbytes)
⋮----
... (20 lines truncated)
</file>

<file path="src/.valgrind.supp">
{
   nss_parse_service_list
   Memcheck:Leak
   fun:malloc
   fun:nss_parse_service_list
   fun:__nss_database_lookup
}
{
  uv_spawn_with_optimizations
  Memcheck:Leak
  fun:malloc
  fun:uv_spawn
  fun:libuv_proc_spawn
  fun:proc_spawn
  fun:job_start
}
</file>

<file path="src/bit.c">
typedef int32_t SBits;
typedef uint32_t UBits;
⋮----
} BitNum;
⋮----
static UBits barg(lua_State *L, int idx)
⋮----
static int bit_tobit(lua_State *L) { BRET(barg(L, 1)) }
static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) }
⋮----
static int bit_bswap(lua_State *L)
⋮----
static int bit_tohex(lua_State *L)
⋮----
LUALIB_API int luaopen_bit(lua_State *L)
</file>

<file path="src/bit.h">
int luaopen_bit(lua_State *L);
</file>

<file path="src/build_lua.zig">
const std = @import("std");
const build = @import("../build.zig");
const LazyPath = std.Build.LazyPath;

pub fn build_nlua0(
    b: *std.Build,
    target: std.Build.ResolvedTarget,
    optimize: std.builtin.OptimizeMode,
    use_luajit: bool,
    ziglua: *std.Build.Dependency,
    libluv: ?*std.Build.Step.Compile,
    system_integration_options: build.SystemIntegrationOptions,
) !*std.Build.Step.Compile {
    const options = b.addOptions();
    options.addOption(bool, "use_luajit", use_luajit);

    const nlua0_exe = b.addExecutable(.{
        .name = "nlua0",
        .root_module = b.createModule(.{
            .root_source_file = b.path("src/nlua0.zig"),
            .target = target,
            .optimize = optimize,
            .link_libc = true,
        }),
        .use_llvm = true,
    });
    const nlua0_mod = nlua0_exe.root_module;

    const exe_unit_tests = b.addTest(.{
        .root_module = b.createModule(.{
... (141 lines truncated)
</file>

<file path="src/clint.lua">
#!/usr/bin/env nvim -l
---@diagnostic disable: no-unknown

-- Lints C files in the Neovim source tree.
-- Based on Google "cpplint", modified for Neovim.
--
-- Test coverage: `test/functional/script/clint_spec.lua`
--
-- This can get very confused by /* and // inside strings! We do a small hack,
-- which is to ignore //'s with "'s after them on the same line, but it is far
-- from perfect (in either direction).

local vim = vim

-- Error categories used for filtering
local ERROR_CATEGORIES = {
  'build/endif_comment',
  'build/header_guard',
  'build/include_defs',
  'build/defs_header',
  'build/printf_format',
  'build/storage_class',
  'build/init_macro',
  'readability/bool',
  'readability/multiline_comment',
  -- Dropped 'readability/multiline_string' detection because it is too buggy, and uncommon.
  -- 'readability/multiline_string',
  'readability/nul',
  'readability/utf8',
  'readability/increment',
... (1570 lines truncated)
</file>

<file path="src/coverity-model.c">
struct uv_pipe_s {
⋮----
int uv_pipe_open(struct uv_pipe_s *handle, int fd)
⋮----
typedef struct {} dictitem_T;
typedef struct {} dict_T;
int tv_dict_add(dict_T *const d, dictitem_T *const item)
⋮----
void *malloc(size_t size)
⋮----
void *try_malloc(size_t size)
⋮----
void *xmalloc(size_t size)
⋮----
void xfree(void * ptr)
⋮----
void *xcalloc(size_t count, size_t size)
⋮----
void *xrealloc(void *ptr, size_t size)
⋮----
void *xmallocz(size_t size)
⋮----
void * xmemdupz(const void * data, size_t len)
⋮----
void * xmemdup(const void *data, size_t len)
⋮----
typedef struct {} lua_State;
⋮----
int luaL_typerror(lua_State *L, int narg, const char *tname)
⋮----
... (6 lines truncated)
</file>

<file path="src/lint.zig">
const std = @import("std");
const gen = @import("gen/gen_steps.zig");

pub fn lintSources(
    b: *std.Build,
    nvim_sources: std.ArrayList(gen.SourceItem),
    nvim_headers: std.ArrayList([]u8),
) !std.ArrayList([]const u8) {
    var lint_sources: std.ArrayList([]const u8) = try .initCapacity(b.allocator, 0);
    for (nvim_sources.items) |source| {
        try lint_sources.append(b.allocator, b.fmt("src/nvim/{s}", .{source.name}));
    }
    for (nvim_headers.items) |header| {
        try lint_sources.append(b.allocator, b.fmt("src/nvim/{s}", .{header}));
    }
    try lint_sources.append(b.allocator, "src/tee/tee.c");
    try lint_sources.append(b.allocator, "src/xxd/xxd.c");
    return lint_sources;
}

pub fn addSteps(
    b: *std.Build,
    target: std.Build.ResolvedTarget,
    cdb_step: *std.Build.Step,
    nvim_exe_install: *std.Build.Step.InstallArtifact,
    nvim_sources: std.ArrayList(gen.SourceItem),
    nvim_headers: std.ArrayList([]u8),
    ci_build: bool,
) !void {
    const lintc = b.step("lintc", "Lint C source");
... (131 lines truncated)
</file>

<file path="src/nlua0.c">
LUA_API int luaopen_nlua0(lua_State* L);
⋮----
LUA_API int luaopen_nlua0(lua_State* L) {
⋮----
int luaopen_lpeg(lua_State *);
</file>

<file path="src/nlua0.zig">
//! "nlua" is an abbreviation for nvim flavored lua, i e lua with the
//! extended standard library functionality added by nvim such as json, mpack
//! and libuv and a range of vim.* utility functions.
//!
//! nlua0 is an interpreter for the "bootstrap" lua code we need to run before
//! nvim can be built, in order to run lua scripts which process and generate
//! more .c code, which still need these extensions.
const std = @import("std");
const ziglua = @import("ziglua");
const options = @import("options");

const embedded_data = @import("embedded_data");

// these are common dependencies used by many generators
const hashy = @embedFile("gen/hashy.lua");
const keyset = @embedFile("gen/keyset.lua");
const c_grammar = @embedFile("gen/c_grammar.lua");

const Lua = ziglua.Lua;

extern "c" fn luaopen_mpack(ptr: *anyopaque) c_int;
extern "c" fn luaopen_lpeg(ptr: *anyopaque) c_int;
extern "c" fn luaopen_bit(ptr: *anyopaque) c_int;
extern "c" fn luaopen_luv(ptr: *anyopaque) c_int;

fn init_lua() !*Lua {
    // Initialize the Lua vm
    var lua = try Lua.init(std.heap.c_allocator);
    lua.openLibs();

... (107 lines truncated)
</file>

<file path="src/static_ts_registry.c">
extern const TSLanguage *tree_sitter_lua(void);
extern const TSLanguage *tree_sitter_c(void);
extern const TSLanguage *tree_sitter_diff(void);
extern const TSLanguage *tree_sitter_vim(void);
extern const TSLanguage *tree_sitter_markdown(void);
extern const TSLanguage *tree_sitter_markdown_inline(void);
extern const TSLanguage *tree_sitter_query(void);
extern const TSLanguage *tree_sitter_vimdoc(void);
⋮----
} TsParserEntry;
⋮----
const TSLanguage *nvim_ts_get_parser(const char *lang)
</file>

<file path="src/uncrustify.cfg">
# Uncrustify-0.81.0_f

#
# General options
#

# The type of line endings.
#
# Default: auto
newlines                        = lf       # lf/crlf/cr/auto

# The original size of tabs in the input.
#
# Default: 8
input_tab_size                  = 8        # unsigned number

# The size of tabs in the output (only used if align_with_tabs=true).
#
# Default: 8
output_tab_size                 = 8        # unsigned number

# The ASCII value of the string escape char, usually 92 (\) or (Pawn) 94 (^).
#
# Default: 92
string_escape_char              = 92       # unsigned number

# Alternate string escape char (usually only used for Pawn).
# Only works right before the quote char.
string_escape_char2             = 0        # unsigned number

... (3742 lines truncated)
</file>

<file path=".emmyrc.json">
{
  "$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/0.25.1/crates/emmylua_code_analysis/resources/schema.json",
  "runtime": {
    "version": "LuaJIT"
  },
  "workspace": {
    "ignoreDir": [
      ".deps",
      "build"
    ],
    "ignoreGlobs": [
      "**/example_init.lua",
      "**/lua/vim/re.lua",
      "test/**/fixtures/**"
    ],
    "preloadFileSize": 1000
  },
  "format": {
    "externalTool": {
      "program": "stylua",
      "args": [
        "-",
        "--stdin-filepath",
        "${file}"
      ]
    }
  },
  "diagnostics": {
    "disable": [
      "incomplete-signature-doc",
... (36 lines truncated)
</file>

<file path=".luacheckrc">
-- vim: ft=lua tw=80

stds.nvim = {
  read_globals = { "jit" }
}
std = "lua51+nvim"

-- Ignore W211 (unused variable) with preload files.
files["**/preload.lua"] = {ignore = { "211" }}
-- Allow vim module to modify itself, but only here.
files["src/nvim/lua/vim.lua"] = {ignore = { "122/vim" }}

-- Don't report unused self arguments of methods.
self = false

-- Rerun tests only if their modification time changed.
cache = true

ignore = {
  "631",  -- max_line_length
  "212/_.*",  -- unused argument, for vars with "_" prefix
  "214", -- used variable with unused hint ("_" prefix)
  "121", -- setting read-only global variable 'vim'
  "122", -- setting read-only field of global variable 'vim'
  "581", -- negation of a relational operator- operator can be flipped (not for tables)
}

-- Global objects defined by the C code
read_globals = {
  "vim",
... (25 lines truncated)
</file>

<file path=".luacov">
-- Configuration file for LuaCov

local source = require("lfs").currentdir()

local function pesc(s)
  assert(type(s) == 'string', s)
  return s:gsub('[%(%)%.%%%+%-%*%?%[%]%^%$]', '%%%1')
end

return {
  include = {
    -- Absolute paths (starting with source dir, not hidden (i.e. .deps)).
    pesc(source) .. "[/\\][^.].+",
    -- Relative (non-hidden) paths.
    '^[^/\\.]',
  },
  modules = {
    ['vim'] = 'runtime/lua/vim/_core/shared.lua'
  },
}

-- vim: ft=lua tw=80 sw=2 et
</file>

<file path=".luarc.json">
{
  "$comment": "Keep LuaLS settings under Lua so EmmyLua ignores them.",
  "Lua": {
    "runtime": {
      "version": "LuaJIT"
    },
    "workspace": {
      "ignoreDir": [
        "/lua/vim/async.lua",
        ".deps",
        "build"
      ],
      "ignoreGlobs": [
        "test/**/fixtures/**"
      ],
      "preloadFileSize": 1000,
      "checkThirdParty": "Disable"
    },
    "diagnostics": {
      "groupFileStatus": {
        "strict": "Opened",
        "strong": "Opened"
      },
      "groupSeverity": {
        "strong": "Warning",
        "strict": "Warning"
      },
      "unusedLocalExclude": [ "_*" ],
      "disable": [
        "luadoc-miss-see-name"
... (5 lines truncated)
</file>

<file path=".stylua.toml">
column_width = 100
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferSingle"
call_parentheses = "Input"
</file>

<file path=".stylua2.toml">
# Alternative settings for special snowflakes like: decorations_spec.lua, multigrid_spec.lua, etc.

column_width = 140
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferSingle"
call_parentheses = "Input"
</file>

<file path="AGENTS.md">
# AGENTS.md

## AI Disclosure

If AI was used for a commit, add a generic `AI-assisted` trailer to the commit message.
Do NOT add any info mentioning the particular model or the AI service.
Do NOT list an AI service as the author name/email.
</file>

<file path="BSDmakefile">
.DONE:
	@echo "Use GNU Make (gmake) to build neovim"
.DEFAULT:
	@echo "Use GNU Make (gmake) to build neovim"
</file>

<file path="BUILD.md">
- **IMPORTANT**: Before upgrading to a new version, **always check for [breaking changes](https://neovim.io/doc/user/news.html#news-breaking).**


## Quick start

1. Install [build prerequisites](#build-prerequisites) on your system
2. `git clone https://github.com/neovim/neovim`
3. `cd neovim`
    - If you want the **stable release**, also run `git checkout stable`.
4. `make CMAKE_BUILD_TYPE=RelWithDebInfo`
    - If you want to install to a custom location, set `CMAKE_INSTALL_PREFIX`. See also [INSTALL.md](./INSTALL.md#install-from-source).
    - On BSD, use `gmake` instead of `make`.
    - To build on Windows, see the [Building on Windows](#building-on-windows) section. _MSVC (Visual Studio) is recommended._
5. `sudo make install`
    - Default install location is `/usr/local`
    - On Debian/Ubuntu, instead of `sudo make install`, you can try `cd build && cpack -G DEB && sudo dpkg -i nvim-linux-<arch>.deb` (with `<arch>` either `x86_64` or `arm64`) to build DEB-package and install it. This helps ensure clean removal of installed files. Note: This is an unsupported, "best-effort" feature of the Nvim build.

**Notes**:
- From the repository's root directory, running `make` will download and build all the needed dependencies and put the `nvim` executable in `build/bin`.
- Third-party dependencies (libuv, LuaJIT, etc.) are downloaded automatically to `.deps/`. See the [FAQ](https://neovim.io/doc/user/faq.html#faq-build) if you have issues.
- After building, you can run the `nvim` executable without installing it by running `VIMRUNTIME=runtime ./build/bin/nvim`.
- If you plan to develop Neovim, install [Ninja](https://ninja-build.org/) for faster builds. It will automatically be used.
- Install [ccache](https://ccache.dev/) for faster rebuilds of Neovim. It's used by default. To disable it, use `CCACHE_DISABLE=true make`.

## Running tests

See [test/README.md](https://github.com/neovim/neovim/blob/master/test/README.md).

## Building

... (586 lines truncated)
</file>

<file path="build.zig">
const std = @import("std");
const LazyPath = std.Build.LazyPath;
const Compile = std.Build.Step.Compile;
const build_lua = @import("src/build_lua.zig");
const gen = @import("src/gen/gen_steps.zig");
const runtime = @import("runtime/gen_runtime.zig");
const tests = @import("test/run_tests.zig");
const zcc = @import("compile_commands");
const lint = @import("src/lint.zig");

const version = struct {
    const major = 0;
    const minor = 13;
    const patch = 0;
    const prerelease = "-dev";

    const api_level = 15;
    const api_level_compat = 0;
    const api_prerelease = true;
};

pub const SystemIntegrationOptions = packed struct {
    lua: bool,
    tree_sitter: bool,
    unibilium: bool,
    utf8proc: bool,
    uv: bool,
};

// TODO(bfredl): this is for an upstream issue
... (937 lines truncated)
</file>

<file path="build.zig.zon">
.{
    .name = .neovim,
    .fingerprint = 0x66eb090879307a38,
    .version = "0.13.0",
    .minimum_zig_version = "0.16.0",

    .dependencies = .{
        .zlua = .{
            .url = "git+https://github.com/natecraddock/ziglua.git#9ae39fa50b1ab8427d35f963216116d7bff1e584",
            .hash = "zlua-0.1.0-hGRpC1mUBQCNQf4CnmRTM4I7gxE3YpCvZ-p2EarlcyER",
        },
        .luv = .{
            .url = "git+https://github.com/luvit/luv?ref=1.52.1-0#f65fe9d7616f9fbcd20227fc7a73b38d1c5c180d",
            .hash = "N-V-__8AANegDwD93oh3SzPCFx_LVS4ash9TDITp7Oq0HlDJ",
            .lazy = true,
        },
        .lua_compat53 = .{
            .url = "https://github.com/lunarmodules/lua-compat-5.3/archive/v0.13.tar.gz",
            .hash = "N-V-__8AADi-AwDnVoXwDCQvv2wcYOmN0bJLqZ44J3lwoQY2",
            .lazy = true,
        },
        .treesitter = .{
            .url = "git+https://github.com/tree-sitter/tree-sitter?ref=v0.27.0#6070dbfefd326bd735e5683eb128cc1b57dad0c0",
            .hash = "tree_sitter-0.27.0-Tw2sRzbJDQAI0igzBO7QpcYZiblLoFMNjSLLHKbx1ck3",
            .lazy = true,
        },
        .libuv = .{
            .url = "git+https://github.com/allyourcodebase/libuv.git#c1ccce24e1077ae7780857c89fb4b3aeb9080315",
            .hash = "libuv-1.52.0-htqqvzNqAAAB6cHIx-wIffe_mqMW5GOKjHeDBJYHGwls",
            .lazy = true,
... (57 lines truncated)
</file>

<file path="CMakePresets.json">
{
  "version": 3,
  "configurePresets": [
    {
      "name": "base",
      "generator": "Ninja",
      "binaryDir": "${sourceDir}/build",
      "hidden": true
    },
    {
      "name": "default",
      "displayName": "RelWithDebInfo",
      "description": "Enables optimizations with debug information",
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "RelWithDebInfo"
      },
      "inherits": ["base"]
    },
    {
      "name": "debug",
      "displayName": "Debug",
      "description": "No optimizations, enables debug information",
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Debug"
      },
      "inherits": ["base"]
    },
    {
      "name": "release",
      "displayName": "Release",
... (25 lines truncated)
</file>

<file path="CONTRIBUTING.md">
Contributing to Neovim
======================

Getting started
---------------

If you are new to the codebase, read [:help dev-quickstart](https://neovim.io/doc/user/dev_tools.html#dev-quickstart)
to see how to run tests and start hacking on the codebase.

If you want to help but don't know where to start, here are some
low-risk/isolated tasks:

- Try a [complexity:low] issue.
- Fix bugs found by [Coverity](#coverity).
- [Merge a Vim patch] (requires strong familiarity with Vim)
  - NOTE: read the above link before sending improvements to "runtime files" (anything in `runtime/`).
    - *Vimscript* files are (mostly) maintained by [Vim], not Nvim.
    - *Lua* files are maintained by *Nvim*.
    - Nvim's [filetype detection](https://github.com/neovim/neovim/blob/master/runtime/lua/vim/filetype.lua) behavior matches Vim, so changes to filetype detection should be submitted to [Vim] first.

Reporting problems
------------------

- [Check the FAQ][wiki-faq].
- [Search existing issues][github-issues] (including closed!)
- Update Neovim to the latest version to see if your problem persists.
- Try to reproduce with `nvim --clean` ("factory defaults").
- If a specific configuration or plugin is necessary to recreate the problem, use the minimal template in `contrib/minimal.lua` with `nvim --clean -u contrib/minimal.lua` after making the necessary changes.
- [Bisect](https://neovim.io/doc/user/starting.html#bisect) your config: disable plugins incrementally, to narrow down the cause of the issue.
- [Bisect][git-bisect] Neovim's source code to find the cause of a regression, if you can. This is _extremely_ helpful.
... (345 lines truncated)
</file>

<file path="INSTALL.md">
You can install Neovim from [download](#install-from-download), [package](#install-from-package), or [source](#install-from-source) in just a few seconds.

---

- To start Neovim, run `nvim` (not `neovim`).
    - [Discover plugins](https://github.com/neovim/neovim/wiki/Related-projects#plugins).
- Before upgrading to a new version, **check [Breaking Changes](https://neovim.io/doc/user/news.html#news-breaking).**
- For config (vimrc) see [the FAQ](https://neovim.io/doc/user/faq.html#faq-general).

---

Install from download
=====================

Downloads are available on the [Releases](https://github.com/neovim/neovim/releases) page.

* Latest [stable release](https://github.com/neovim/neovim/releases/latest)
    * [macOS x86_64](https://github.com/neovim/neovim/releases/latest/download/nvim-macos-x86_64.tar.gz)
    * [macOS arm64](https://github.com/neovim/neovim/releases/latest/download/nvim-macos-arm64.tar.gz)
    * [Linux x86_64](https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz)
    * [Linux arm64](https://github.com/neovim/neovim/releases/latest/download/nvim-linux-arm64.tar.gz)
    * [Windows x86_64](https://github.com/neovim/neovim/releases/latest/download/nvim-win64.msi)
    * [Windows arm64](https://github.com/neovim/neovim/releases/latest/download/nvim-win-arm64.msi)
* Latest [development prerelease](https://github.com/neovim/neovim/releases/nightly)


Install from package
====================

Packages are listed below. (You can also [build Neovim from source](#install-from-source).)
... (465 lines truncated)
</file>

<file path="LICENSE.txt">
Copyright Neovim contributors. All rights reserved.

Neovim is licensed under the terms of the Apache 2.0 license, except for
parts of Neovim that were contributed under the Vim license (see below).

Neovim's license follows:

====
                                 Apache License
                           Version 2.0, January 2004
                        https://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

... (272 lines truncated)
</file>

<file path="MAINTAIN.md">
Maintaining the Neovim project
==============================

Notes on maintaining the Neovim project.

General guidelines
------------------

* Decide by cost-benefit
* Write down what was decided
* Constraints are good
* Use automation to solve problems
* Never break the API... but sometimes break the UI

Issue triage
------------

In practice we haven't found a way to forecast more precisely than "next" and
"after next". So there are usually one or two (at most) planned milestones:

* Next bugfix-release (1.0.x)
* Next feature-release (1.x.0)

The forecasting problem might be solved with an explicit priority system (like
Vim's todo.txt). Meanwhile the Neovim priority system is defined by:

* PRs nearing completion.
* Issue labels. E.g. the `has:plan` label increases the ticket's priority merely
  for having a plan written down: it is _closer to completion_ than tickets
  without a plan.
... (251 lines truncated)
</file>

<file path="Makefile">
ifeq ($(OS),Windows_NT)
  ifeq '$(findstring ;,$(PATH))' ';'
    UNIX_LIKE := FALSE
  else
    UNIX_LIKE := TRUE
  endif
else
  UNIX_LIKE := TRUE
endif

ifeq ($(UNIX_LIKE),FALSE)
  SHELL := powershell.exe
  .SHELLFLAGS := -NoProfile -NoLogo
  MKDIR := @$$null = new-item -itemtype directory -force
  TOUCH := @$$null = new-item -force
  RM := remove-item -force
  CMAKE := cmake
  CMAKE_GENERATOR := Ninja
  define rmdir
    if (Test-Path $1) { remove-item -recurse $1 }
  endef
else
  MKDIR := mkdir -p
  TOUCH := touch
  RM := rm -rf
  CMAKE := $(shell (command -v cmake3 || command -v cmake || echo cmake))
  CMAKE_GENERATOR ?= "$(shell (command -v ninja > /dev/null 2>&1 && echo "Ninja") || echo "Unix Makefiles")"
  define rmdir
    rm -rf $1
  endef
... (167 lines truncated)
</file>

<file path="README.md">
<h1 align="center">
  <img src="https://raw.githubusercontent.com/neovim/neovim.github.io/master/static/logos/neovim-logo-300x87.png" alt="Neovim">

  <a href="https://neovim.io/doc/">Documentation</a> |
  <a href="https://app.element.io/#/room/#neovim:matrix.org">Chat</a>
</h1>

[![Coverity Scan analysis](https://scan.coverity.com/projects/2227/badge.svg)](https://scan.coverity.com/projects/2227)
[![Packages](https://repology.org/badge/tiny-repos/neovim.svg)](https://repology.org/metapackage/neovim)
[![Debian CI](https://badges.debian.net/badges/debian/testing/neovim/version.svg)](https://buildd.debian.org/neovim)
[![Downloads](https://img.shields.io/github/downloads/neovim/neovim/total.svg?maxAge=2592001)](https://github.com/neovim/neovim/releases/)

Neovim is a project that seeks to aggressively refactor [Vim](https://www.vim.org/) in order to:

- Simplify maintenance and encourage [contributions](CONTRIBUTING.md)
- Split the work between multiple developers
- Enable [advanced UIs] without modifications to the core
- Maximize [extensibility](https://neovim.io/doc/user/api-ui-events.html#api-ui-events)

See the [Introduction](https://github.com/neovim/neovim/wiki/Introduction) wiki page and [Roadmap]
for more information.

Features
--------

- Modern [GUIs](https://github.com/neovim/neovim/wiki/Related-projects#gui)
- [API access](https://github.com/neovim/neovim/wiki/Related-projects#api-clients)
  from any language including C/C++, C#, Clojure, D, Elixir, Go, Haskell, Java/Kotlin,
  JavaScript/Node.js, Julia, Lisp, Lua, Perl, Python, Racket, Ruby, Rust
- Embedded, scriptable [terminal emulator](https://neovim.io/doc/user/terminal.html)
... (86 lines truncated)
</file>

</files>
