mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Merge pull request #2288 from ZyX-I/autovimsyn
Move part of syntax/vim.vim to syntax/vim/generated.vim
This commit is contained in:
commit
a497bf4bfd
@ -266,11 +266,6 @@ if(NOT BUSTED_OUTPUT_TYPE)
|
||||
set(BUSTED_OUTPUT_TYPE "utfTerminal")
|
||||
endif()
|
||||
|
||||
# CMake is painful here. It will create the destination using the user's
|
||||
# current umask, and we don't want that. And we don't just want to install
|
||||
# the target directory, as it will mess with existing permissions. So this
|
||||
# seems like the best compromise. If we create it, then everyone can see it.
|
||||
# If it's preexisting, leave it alone.
|
||||
include(InstallHelpers)
|
||||
|
||||
file(GLOB MANPAGES
|
||||
@ -281,24 +276,6 @@ install_helper(
|
||||
FILES ${MANPAGES}
|
||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||
|
||||
install_helper(
|
||||
DIRECTORY runtime
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim)
|
||||
|
||||
file(GLOB_RECURSE RUNTIME_PROGRAMS
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
runtime/*.awk runtime/*.sh)
|
||||
|
||||
foreach(PROG ${RUNTIME_PROGRAMS})
|
||||
get_filename_component(BASEDIR ${PROG} PATH)
|
||||
install_helper(PROGRAMS ${PROG} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/${BASEDIR})
|
||||
endforeach()
|
||||
|
||||
configure_file(${PROJECT_SOURCE_DIR}/cmake/GenerateHelptags.cmake.in
|
||||
${PROJECT_BINARY_DIR}/cmake/GenerateHelptags.cmake @ONLY)
|
||||
install(SCRIPT ${PROJECT_BINARY_DIR}/cmake/GenerateHelptags.cmake)
|
||||
|
||||
|
||||
# Go down the tree.
|
||||
|
||||
add_subdirectory(src/nvim)
|
||||
@ -310,6 +287,7 @@ get_compile_flags(NVIM_VERSION_CFLAGS)
|
||||
add_subdirectory(test/includes)
|
||||
add_subdirectory(config)
|
||||
add_subdirectory(test/functional/fixtures) # compile pty/shell test programs
|
||||
add_subdirectory(runtime)
|
||||
|
||||
|
||||
# Setup some test-related bits. We do this after going down the tree because we
|
||||
|
78
runtime/CMakeLists.txt
Normal file
78
runtime/CMakeLists.txt
Normal file
@ -0,0 +1,78 @@
|
||||
set(SYN_VIM_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/genvimvim.lua)
|
||||
set(GENERATED_RUNTIME_DIR ${PROJECT_BINARY_DIR}/runtime)
|
||||
set(GENERATED_SYN_VIM ${GENERATED_RUNTIME_DIR}/syntax/vim/generated.vim)
|
||||
set(GENERATED_HELP_TAGS ${GENERATED_RUNTIME_DIR}/doc/tags)
|
||||
|
||||
file(MAKE_DIRECTORY ${GENERATED_RUNTIME_DIR})
|
||||
file(MAKE_DIRECTORY ${GENERATED_RUNTIME_DIR}/syntax)
|
||||
file(MAKE_DIRECTORY ${GENERATED_RUNTIME_DIR}/syntax/vim)
|
||||
|
||||
add_custom_command(OUTPUT ${GENERATED_SYN_VIM}
|
||||
COMMAND ${LUA_PRG} ${SYN_VIM_GENERATOR}
|
||||
${PROJECT_SOURCE_DIR}/src/nvim ${GENERATED_SYN_VIM}
|
||||
DEPENDS
|
||||
${SYN_VIM_GENERATOR}
|
||||
${PROJECT_SOURCE_DIR}/src/nvim/ex_cmds.lua
|
||||
${PROJECT_SOURCE_DIR}/src/nvim/auevents.lua
|
||||
${PROJECT_SOURCE_DIR}/src/nvim/options.lua
|
||||
${PROJECT_SOURCE_DIR}/src/nvim/eval.c
|
||||
)
|
||||
|
||||
file(GLOB DOCFILES ${PROJECT_SOURCE_DIR}/runtime/doc/*.txt)
|
||||
|
||||
set(BUILDDOCFILES)
|
||||
foreach(DF ${DOCFILES})
|
||||
get_filename_component(F ${DF} NAME)
|
||||
list(APPEND BUILDDOCFILES ${GENERATED_RUNTIME_DIR}/doc/${F})
|
||||
endforeach()
|
||||
|
||||
add_custom_command(OUTPUT ${BUILDDOCFILES}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${PROJECT_SOURCE_DIR}/runtime/doc ${GENERATED_RUNTIME_DIR}/doc
|
||||
DEPENDS
|
||||
${DOCFILES})
|
||||
|
||||
add_custom_command(OUTPUT ${GENERATED_HELP_TAGS}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${PROJECT_SOURCE_DIR}/runtime/doc ${GENERATED_RUNTIME_DIR}/doc
|
||||
COMMAND "${PROJECT_BINARY_DIR}/bin/nvim"
|
||||
-u NONE
|
||||
-i NONE
|
||||
-esX
|
||||
-c "helptags ++t ."
|
||||
-c quit
|
||||
DEPENDS
|
||||
${BUILDDOCFILES}
|
||||
nvim
|
||||
WORKING_DIRECTORY "${GENERATED_RUNTIME_DIR}/doc"
|
||||
)
|
||||
|
||||
add_custom_target(
|
||||
runtime ALL
|
||||
DEPENDS
|
||||
${GENERATED_SYN_VIM}
|
||||
${GENERATED_HELP_TAGS}
|
||||
)
|
||||
|
||||
# CMake is painful here. It will create the destination using the user's
|
||||
# current umask, and we don't want that. And we don't just want to install
|
||||
# the target directory, as it will mess with existing permissions. So this
|
||||
# seems like the best compromise. If we create it, then everyone can see it.
|
||||
# If it's preexisting, leave it alone.
|
||||
|
||||
install_helper(
|
||||
DIRECTORY ${PROJECT_SOURCE_DIR}/runtime
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim)
|
||||
install_helper(
|
||||
DIRECTORY ${GENERATED_RUNTIME_DIR}
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim)
|
||||
|
||||
file(GLOB_RECURSE RUNTIME_PROGRAMS
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
*.awk *.sh)
|
||||
|
||||
foreach(PROG ${RUNTIME_PROGRAMS})
|
||||
get_filename_component(BASEDIR ${PROG} PATH)
|
||||
install_helper(PROGRAMS ${PROG}
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/${BASEDIR})
|
||||
endforeach()
|
@ -17,41 +17,19 @@ set cpo&vim
|
||||
syn keyword vimTodo contained COMBAK FIXME TODO XXX
|
||||
syn cluster vimCommentGroup contains=vimTodo,@Spell
|
||||
|
||||
" regular vim commands {{{2
|
||||
syn keyword vimCommand contained a arga[dd] ar[gs] bd[elete] bN[ext] breakd[el] bufdo cabc[lear] cat[ch] cex[pr] c[hange] cla[st] cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpt[ags] iabc[lear] intro k l lan lc[d] lefta[bove] lg[etfile] lla[st] lnew[er] lNf[ile] lockv[ar] ls lvimgrepa[dd] mat[ch] mk[exrc] mo n n[ext] o ownsyntax pre[serve] promptf[ind] ptl[ast] ptr[ewind] py3do qa[ll] r[ead] redr[aw] retu[rn] rub[y] rv[iminfo] sba[ll] sbN[ext] scripte[ncoding] setf[iletype] sh[ell] sim[alt] sm[ap] sni[ff] sor[t] spelli[nfo] spr[evious] start st[op] sunmenu syn ta tabf[ind] tabnew tabr[ewind] tj[ump] tN tr tu[nmenu] undoj[oin] uns[ilent] ve[rsion] vimgrepa[dd] vs[plit] winc[md] wN[ext] ws[verb] x[it] xnoremenu
|
||||
syn keyword vimCommand contained ab argd[elete] argu[ment] bel[owright] bo[tright] breakl[ist] b[uffer] cb[uffer] cf[ile] changes cl[ist] cn[ext] col[der] conf[irm] cq[uit] cw[indow] delc[ommand] deletl delp diffpu[t] dir doau ea e[dit] endfo[r] ene[w] files fini[sh] foldd[oopen] g h hi if is[earch] keepa la lan[guage] lch[dir] lex[pr] lgr[ep] lli[st] lne[xt] lo lol[der] lt[ag] lw[indow] menut mks[ession] mod[e] nbc[lose] nmapc[lear] ol[dfiles] p po[p] prev[ious] promptr[epl] ptn pts[elect] pydo q[uit] rec[over] redraws[tatus] rew[ind] sal[l] sbf[irst] sbp[revious] scrip[tnames] setg[lobal] si sl sme sno[magic] so[urce] spellr[epall] sre[wind] startg[replace] stopi[nsert] sus[pend] sync tab tabfir[st] tabn[ext] tabs tl[ast] tn[ext] tr[ewind] u undol[ist] up[date] vert[ical] vi[sual] w windo wp[revious] wundo xmapc[lear] xunme
|
||||
syn keyword vimCommand contained abc[lear] argdo as[cii] bf[irst] bp[revious] br[ewind] buffers cad[dbuffer] cc cfir[st] chd[ir] clo[se] cN[ext] colo[rscheme] con[tinue] cr[ewind] d delel deletp dep diffs[plit] di[splay] dp earlier el[se] endfun ex filet fir[st] foldo[pen] go[to] ha[rdcopy] hid[e] ij[ump] isp[lit] keepalt lad la[st] lcl[ose] lf[ile] lgrepa[dd] lmak[e] lN[ext] loadk lop[en] ma menut[ranslate] mksp[ell] m[ove] nb[key] noa omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] red reg[isters] ri[ght] san[dbox] sbl[ast] sbr[ewind] scs setl[ocal] sig sla[st] smenu snoreme spe spellu[ndo] st star[tinsert] sts[elect] sv[iew] syncbind tabc[lose] tabl[ast] tabN[ext] ta[g] te[aroff] tm tN[ext] try un unh[ide] v vi viu[sage] wa[ll] winp[os] wq wv[iminfo] xme xunmenu
|
||||
syn keyword vimCommand contained abo[veleft] arge[dit] au bl[ast] br bro[wse] bun[load] cadde[xpr] ccl[ose] cgetb[uffer] che[ckpath] cmapc[lear] cnf com cope[n] cs de delep delf di difft[his] dj[ump] dr[op] ec elsei[f] endf[unction] exi[t] filetype fix[del] for gr[ep] h[elp] his[tory] il[ist] iuna[bbrev] keepj[umps] laddb[uffer] lat lcs lfir[st] lh[elpgrep] lmapc[lear] lnf loadkeymap lpf[ile] mak[e] mes mkv nbs[tart] noautocmd on[ly] pe popu[p] pro pta[g] ptn[ext] pw[d] py[thon] r redi[r] res[ize] rightb[elow] rundo sa[rgument] sbm[odified] sb[uffer] scscope sf[ind] sign sl[eep] sn[ext] snoremenu spelld[ump] spellw[rong] sta[g] startr[eplace] sun[hide] sw[apname] syntime tabd[o] tabm[ove] tabo[nly] tags tf[irst] tm[enu] to[pleft] ts[elect] una[bbreviate] unl ve vie[w] vmapc[lear] wh[ile] win[size] wqa[ll] x xmenu xwininfo
|
||||
syn keyword vimCommand contained al[l] argg[lobal] bad[d] bm[odified] brea[k] bu bw[ipeout] caddf[ile] cd cgete[xpr] checkt[ime] cn cNf comc[lear] co[py] cscope debug d[elete] delf[unction] diffg[et] diffu[pdate] dl ds[earch] echoe[rr] em[enu] en[dif] exu[sage] fin fo[ld] fu grepa[dd] helpf[ind] i imapc[lear] j[oin] kee[pmarks] lad[dexpr] later lcscope lgetb[uffer] l[ist] lN lNf lo[adview] lp[revious] ma[rk] messages mkvie[w] ne noh[lsearch] o[pen] ped[it] pp[op] profd[el] ptf[irst] ptN[ext] py python3 re red[o] ret[ab] ru ru[ntime] sav[eas] sbn[ext] scrip se[t] sfir[st] sil[ent] sm[agic] sN[ext] so spe[llgood] sp[lit] star stj[ump] sunme sy t tabe[dit] tabN tabp[revious] tc[l] th[row] tn tp[revious] tu u[ndo] unlo[ckvar] verb[ose] vim[grep] vne[w] win wn[ext] w[rite] xa[ll] xnoreme y[ank]
|
||||
syn keyword vimCommand contained ar argl[ocal] ba[ll] bn[ext] breaka[dd] buf c cal[l] ce[nter] cg[etfile] cl cN cnf[ile] comp[iler] cpf[ile] cstag debugg[reedy] deletel dell diffo[ff] dig dli[st] dsp[lit] echom[sg] en endt[ry] f fina[lly] foldc[lose] fun gui helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] le[ft] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] new nu[mber] opt[ions] pe[rl] pr prof[ile] ptj[ump] ptp[revious] py3 q
|
||||
syn keyword vimCommand contained helpc[lose] nos[wapfile]
|
||||
" Special and plugin vim commands {{{2
|
||||
syn match vimCommand contained "\<z[-+^.=]\="
|
||||
syn keyword vimOnlyCommand contained fix[del] sh[ell] P[rint]
|
||||
syn keyword vimStdPlugin contained DiffOrig Man N[ext] S TOhtml XMLent XMLns
|
||||
|
||||
" vimOptions are caught only when contained in a vimSet {{{2
|
||||
syn keyword vimOption contained acd ambiwidth arabicshape autowriteall backupdir bdlay binary breakat bufhidden cd ci cinw co commentstring confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident langmap lines lmap ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pi previewwindow printmbfont qe relativenumber rightleftcmd ru sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wcm whichwrap wildignore winaltkeys winminwidth wmnu write
|
||||
syn keyword vimOption contained ai ambw ari aw backupext beval brk buflisted cdpath cin cinwords cocu cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu linespace loadplugins maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pm printdevice printoptions quoteescape remap rl ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax taglength tbidi terse tildeop tl tr tty tw undofile vb vi wa wd wi wildignorecase window winwidth wmw writeany
|
||||
syn keyword vimOption contained akm anti arshape awa backupskip bex browsedir buftype cedit cindent clipboard cole complete crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel laststatus lisp lpl magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste pex pmbcs printencoding prompt rdt report rlc ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta tagrelative tbis textauto timeout tm ts tx undolevels vbs viewdir wak wic wildmenu winfixheight wop writebackup
|
||||
syn keyword vimOption contained al antialias autochdir background balloondelay bexpr bk bs casemap cf cink cmdheight colorcolumn completefunc copyindent cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg lazyredraw lispwords ls makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pexpr pmbfn printexpr pt re restorescreen rnu rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tags tbs textmode timeoutlen to uc undoreload vdir viewoptions warn wfh wig wildmode winfixwidth wiw wrap writedelay
|
||||
syn keyword vimOption contained aleph ar autoindent backspace ballooneval bg bkc bsdir cb cfu cinkeys cmdwinheight columns completeopt cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lbr list lsp makeprg maxmem mh mmp more mouses nuw opfunc patchexpr pfn popt printfont pumheight readonly revins ro runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tagstack textwidth title toolbar tsr udf updatecount ve viminfo wb wfw wildchar wildoptions winheight wm wrapmargin ws
|
||||
syn keyword vimOption contained allowrevins arab autoread backup balloonexpr bh bl bsk cc ch cino cmp com concealcursor cscopeprg csprg cul def diff display endofline errorformat fcl fdm fex fileformats fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lcs listchars lw mat maxmempattern mis mmt mouse mouseshape odev patchmode ph preserveindent printheader pvh redrawtime ri rs sb scrollbind secure shcf shelltemp shortmess showtabline slm spellcapcheck splitright ssop stmp swapfile sxq tabstop tal term titlelen toolbariconsize ttimeout udir updatetime verbose virtualedit wc wh wildcharm wim winminheight wmh wrapscan ww
|
||||
syn keyword vimOption contained altkeymap arabic autowrite backupcopy bdir bin bomb bt ccv charconvert cinoptions cms comments conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp linebreak lm lz matchpairs maxmemtot mkspellmem mod mousef mouset nf pa path pheader previewheight printmbcharset pvw regexpengine rightleft rtp sbo scrolljump sel shell shq sm so spellfile spr st sts swapsync syn tag tb termbidi tgst titleold top ttimeoutlen ul ur verbosefile visualbell breakindent breakindentopt bri briopt langnoremap lnr
|
||||
" Vim-specific options {{{2
|
||||
syn keyword vimOnlyOption contained biosk bioskey cp compatible consk conskey cm cryptmethod edcompatible guipty key macatsui mzq mzquantum osfiletype oft renderoptions rop st shelltype sn shortname tenc termencoding ta textauto tx textmode tf ttyfast ttym ttymouse tbi ttybuiltin wiv weirdinvert
|
||||
|
||||
" vimOptions: These are the turn-off setting variants {{{2
|
||||
syn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobuflisted nocin noconfirm nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noendofline noerrorbells noex nofen nofk nogd nohid nohkmap nohkp nohlsearch noicon noim noimcmdline noimdisable noinf noinsertmode nojoinspaces nolazyredraw nolinebreak nolist nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbs noterse notextmode notgst notimeout noto notr notx noundofile novisualbell nowarn nowfw nowildignorecase nowinfixheight nowrap nowrite nowritebackup
|
||||
syn keyword vimOption contained noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobl nocf nocindent nocscopetag nocst nocul nocursorline nodg noea noeol noesckeys noexpandtab nofic nofkmap nogdefault nohidden nohkmapp nohls noic noignorecase noimc noimd noincsearch noinfercase nois nojs nolbr nolisp noloadplugins nolz nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscrollbind nosecure noshellslash noshiftround noshowcmd noshowmatch nosi nosmartcase nosmarttab nospell nosplitright nosr nosta nostmp noswf notagbsearch notagstack notbidi notermbidi notextauto notildeop notitle notop nottimeout noudf novb nowa nowb nowfh nowic nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows
|
||||
syn keyword vimOption contained noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobomb noci nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noequalalways noet noexrc nofileignorecase nofoldenable noguipty nohk nobreakindent nobri nolangnoremap nolnr
|
||||
" Turn-off setting variants
|
||||
syn keyword vimOnlyOption contained nobiosk nobioskey noconsk noconskey nocp nocompatible noguipty nomacatsui nosn noshortname nota notextauto notx notextmode notf nottyfast notbi nottybuiltin nowiv noweirdinvert
|
||||
|
||||
" vimOptions: These are the invertible variants {{{2
|
||||
syn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbk invbuflisted invcin invconfirm invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph invendofline inverrorbells invex invfen invfk invgd invhid invhkmap invhkp invhlsearch invicon invim invimcmdline invimdisable invinf invinsertmode invjoinspaces invlazyredraw invlinebreak invlist invlpl invma invmagic invml invmodeline invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscs invsft invshelltemp invshowfulltag invshowmode invsm invsmartindent invsmd invsol invsplitbelow invspr invssl invstartofline invswapfile invta invtagrelative invtbs invterse invtextmode invtgst invtimeout invto invtr invtx invundofile invvisualbell invwarn invwfw invwildignorecase invwinfixheight invwrap invwrite invwritebackup
|
||||
syn keyword vimOption contained invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbl invcf invcindent invcscopetag invcst invcul invcursorline invdg invea inveol invesckeys invexpandtab invfic invfkmap invgdefault invhidden invhkmapp invhls invic invignorecase invimc invimd invincsearch invinfercase invis invjs invlbr invlisp invloadplugins invlz invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscrollbind invsecure invshellslash invshiftround invshowcmd invshowmatch invsi invsmartcase invsmarttab invspell invsplitright invsr invsta invstmp invswf invtagbsearch invtagstack invtbidi invtermbidi invtextauto invtildeop invtitle invtop invttimeout invudf invvb invwa invwb invwfh invwic invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws
|
||||
syn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbomb invci invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invequalalways invet invexrc invfileignorecase invfoldenable invguipty invhk invbreakindent invbri invlangnoremap invlnr
|
||||
" Invertible setting variants
|
||||
syn keyword vimOnlyOption contained invbiosk invbioskey invconsk invconskey invcp invcompatible invguipty invmacatsui invsn invshortname invta invtextauto invtx invtextmode invtf invttyfast invtbi invttybuiltin invwiv invweirdinvert
|
||||
|
||||
|
||||
" termcap codes (which can also be set) {{{2
|
||||
syn keyword vimTermOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CS t_CV t_da t_db t_dl t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
|
||||
syn keyword vimTermOption contained t_AF t_AL t_cd t_Ce t_cm t_cs
|
||||
@ -66,12 +44,8 @@ syn match vimTermOption contained "t_k;"
|
||||
|
||||
" unsupported settings: these are supported by vi but don't do anything in vim {{{2
|
||||
syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600
|
||||
|
||||
" AutoCmd Events {{{2
|
||||
"}}}2
|
||||
syn case ignore
|
||||
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdUndefined CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave MenuPopup QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TermChanged TermOpen TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave
|
||||
syn keyword nvimAutoEvent contained TabNew TabNewEntered TabClosed TermEnter
|
||||
|
||||
" Highlight commonly used Groupnames {{{2
|
||||
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
||||
|
||||
@ -80,15 +54,8 @@ syn keyword vimHLGroup contained ColorColumn Cursor CursorColumn CursorIM Cursor
|
||||
syn match vimHLGroup contained "Conceal"
|
||||
syn keyword vimOnlyHLGroup contained VisualNOS
|
||||
syn keyword nvimHLGroup contained EndOfBuffer TermCursor TermCursorNC
|
||||
"}}}2
|
||||
syn case match
|
||||
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained abs and argidx atan browsedir bufloaded bufwinnr byteidxcomp changenr clearmatches complete_add copy count deepcopy diff_filler escape executable expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcwd getfsize getline getpid getreg gettabwinvar getwinvar has hasmapto histget hlID indent inputdialog inputsave invert items len line localtime mapcheck matcharg matchlist min or prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setcmdpos setloclist setpos setreg settabwinvar sha256 shiftwidth sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol wildmenumode wincol winline winrestcmd winsaveview writefile
|
||||
syn keyword vimFuncName contained acos append argv atan2 bufexists bufname byte2line call char2nr col complete_check cos cscope_connection delete diff_hlID eval exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret isdirectory join libcall line2byte log map match matchdelete matchstr mkdir nextnonblank pathshorten printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setline setmatches setqflist settabvar setwinvar shellescape simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode winbufnr winheight winnr winrestview winwidth xor
|
||||
syn keyword vimFuncName contained add argc asin browse buflisted bufnr byteidx ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getfperm getftype getmatches getqflist gettabvar getwinposy globpath haslocaldir histdel hlexists iconv input inputrestore insert islocked keys libcallnr lispindent log10 maparg matchadd matchend max mode nr2char pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client jobsend jobstart jobstop rpcnotify rpcrequest rpcstart rpcstop
|
||||
syn keyword vimFuncName contained arglistid exepath getcmdwintype getcurpos glob2regpat matchaddpos systemlist uniq
|
||||
|
||||
"--- syntax here and above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
|
||||
" commands not picked up by the generator (due to non-standard format)
|
||||
|
65
scripts/gen_events.lua
Normal file
65
scripts/gen_events.lua
Normal file
@ -0,0 +1,65 @@
|
||||
if arg[1] == '--help' then
|
||||
print('Usage: gen_events.lua src/nvim enum_file event_names_file')
|
||||
os.exit(0)
|
||||
end
|
||||
|
||||
local nvimsrcdir = arg[1]
|
||||
local fileio_enum_file = arg[2]
|
||||
local names_file = arg[3]
|
||||
|
||||
package.path = nvimsrcdir .. '/?.lua;' .. package.path
|
||||
|
||||
local auevents = require('auevents')
|
||||
local events = auevents.events
|
||||
local aliases = auevents.aliases
|
||||
|
||||
enum_tgt = io.open(fileio_enum_file, 'w')
|
||||
names_tgt = io.open(names_file, 'w')
|
||||
|
||||
enum_tgt:write('typedef enum auto_event {')
|
||||
names_tgt:write([[
|
||||
static const struct event_name {
|
||||
size_t len;
|
||||
char *name;
|
||||
event_T event;
|
||||
} event_names[] = {]])
|
||||
|
||||
for i, event in ipairs(events) do
|
||||
if i > 1 then
|
||||
comma = ',\n'
|
||||
else
|
||||
comma = '\n'
|
||||
end
|
||||
enum_tgt:write(('%s EVENT_%s = %u'):format(comma, event:upper(), i - 1))
|
||||
names_tgt:write(('%s {%u, "%s", EVENT_%s}'):format(comma, #event, event, event:upper()))
|
||||
end
|
||||
|
||||
for alias, event in pairs(aliases) do
|
||||
names_tgt:write((',\n {%u, "%s", EVENT_%s}'):format(#alias, alias, event:upper()))
|
||||
end
|
||||
|
||||
names_tgt:write(',\n {0, NULL, (event_T)0}')
|
||||
|
||||
enum_tgt:write('\n} event_T;\n')
|
||||
names_tgt:write('\n};\n')
|
||||
|
||||
enum_tgt:write(('\n#define NUM_EVENTS %u\n'):format(#events))
|
||||
names_tgt:write('\nstatic AutoPat *first_autopat[NUM_EVENTS] = {\n ')
|
||||
line_len = 1
|
||||
for i = 1,((#events) - 1) do
|
||||
line_len = line_len + #(' NULL,')
|
||||
if line_len > 80 then
|
||||
names_tgt:write('\n ')
|
||||
line_len = 1 + #(' NULL,')
|
||||
end
|
||||
names_tgt:write(' NULL,')
|
||||
end
|
||||
if line_len + #(' NULL') > 80 then
|
||||
names_tgt:write('\n NULL')
|
||||
else
|
||||
names_tgt:write(' NULL')
|
||||
end
|
||||
names_tgt:write('\n};\n')
|
||||
|
||||
enum_tgt:close()
|
||||
names_tgt:close()
|
183
scripts/genoptions.lua
Normal file
183
scripts/genoptions.lua
Normal file
@ -0,0 +1,183 @@
|
||||
if arg[1] == '--help' then
|
||||
print('Usage: genoptions.lua src/nvim options_file')
|
||||
os.exit(0)
|
||||
end
|
||||
|
||||
local nvimsrcdir = arg[1]
|
||||
local options_file = arg[2]
|
||||
|
||||
package.path = nvimsrcdir .. '/?.lua;' .. package.path
|
||||
|
||||
local opt_fd = io.open(options_file, 'w')
|
||||
|
||||
local w = function(s)
|
||||
if s:match('^ %.') then
|
||||
opt_fd:write(s .. ',\n')
|
||||
else
|
||||
opt_fd:write(s .. '\n')
|
||||
end
|
||||
end
|
||||
|
||||
local options = require('options')
|
||||
|
||||
cstr = options.cstr
|
||||
|
||||
local type_flags={
|
||||
bool='P_BOOL',
|
||||
number='P_NUM',
|
||||
string='P_STRING',
|
||||
}
|
||||
|
||||
local redraw_flags={
|
||||
statuslines='P_RSTAT',
|
||||
current_window='P_RWIN',
|
||||
current_buffer='P_RBUF',
|
||||
all_windows='P_RALL',
|
||||
everything='P_RCLR',
|
||||
curswant='P_CURSWANT',
|
||||
}
|
||||
|
||||
local list_flags={
|
||||
comma='P_COMMA',
|
||||
flags='P_FLAGLIST',
|
||||
flagscomma='P_COMMA|P_FLAGLIST',
|
||||
}
|
||||
|
||||
local get_flags = function(o)
|
||||
local ret = {type_flags[o.type]}
|
||||
local add_flag = function(f)
|
||||
ret[1] = ret[1] .. '|' .. f
|
||||
end
|
||||
if o.list then
|
||||
add_flag(list_flags[o.list])
|
||||
end
|
||||
if o.redraw then
|
||||
for _, r_flag in ipairs(o.redraw) do
|
||||
add_flag(redraw_flags[r_flag])
|
||||
end
|
||||
end
|
||||
for _, flag_desc in ipairs({
|
||||
{'alloced'},
|
||||
{'expand'},
|
||||
{'nodefault'},
|
||||
{'no_mkrc'},
|
||||
{'vi_def'},
|
||||
{'vim'},
|
||||
{'secure'},
|
||||
{'gettext'},
|
||||
{'noglob'},
|
||||
{'normal_fname_chars', 'P_NFNAME'},
|
||||
{'pri_mkrc'},
|
||||
{'deny_in_modelines', 'P_NO_ML'},
|
||||
{'deny_duplicates', 'P_NODUP'},
|
||||
}) do
|
||||
local key_name = flag_desc[1]
|
||||
local def_name = flag_desc[2] or ('P_' .. key_name:upper())
|
||||
if o[key_name] then
|
||||
add_flag(def_name)
|
||||
end
|
||||
end
|
||||
return ret[1]
|
||||
end
|
||||
|
||||
local get_cond
|
||||
get_cond = function(c, base_string)
|
||||
local cond_string = base_string or '#if '
|
||||
if type(c) == 'table' then
|
||||
cond_string = cond_string .. get_cond(c[1], '')
|
||||
for i, subc in ipairs(c) do
|
||||
if i > 1 then
|
||||
cond_string = cond_string .. ' && ' .. get_cond(subc, '')
|
||||
end
|
||||
end
|
||||
elseif c:sub(1, 1) == '!' then
|
||||
cond_string = cond_string .. '!defined(' .. c:sub(2) .. ')'
|
||||
else
|
||||
cond_string = cond_string .. 'defined(' .. c .. ')'
|
||||
end
|
||||
return cond_string
|
||||
end
|
||||
|
||||
value_dumpers = {
|
||||
['function']=function(v) return v() end,
|
||||
string=cstr,
|
||||
boolean=function(v) return v and 'true' or 'false' end,
|
||||
number=function(v) return ('%iL'):format(v) end,
|
||||
['nil']=function(v) return '0L' end,
|
||||
}
|
||||
|
||||
local get_value = function(v)
|
||||
return '(char_u *) ' .. value_dumpers[type(v)](v)
|
||||
end
|
||||
|
||||
local get_defaults = function(d)
|
||||
return '{' .. get_value(d.vi) .. ', ' .. get_value(d.vim) .. '}'
|
||||
end
|
||||
|
||||
local defines = {}
|
||||
|
||||
local dump_option = function(i, o)
|
||||
w(' [' .. ('%u'):format(i - 1) .. ']={')
|
||||
w(' .fullname=' .. cstr(o.full_name))
|
||||
if o.abbreviation then
|
||||
w(' .shortname=' .. cstr(o.abbreviation))
|
||||
end
|
||||
w(' .flags=' .. get_flags(o))
|
||||
if o.enable_if then
|
||||
w(get_cond(o.enable_if))
|
||||
end
|
||||
if o.varname then
|
||||
w(' .var=(char_u *)&' .. o.varname)
|
||||
elseif #o.scope == 1 and o.scope[1] == 'window' then
|
||||
w(' .var=VAR_WIN')
|
||||
end
|
||||
if o.enable_if then
|
||||
w('#endif')
|
||||
end
|
||||
if #o.scope == 1 and o.scope[1] == 'global' then
|
||||
w(' .indir=PV_NONE')
|
||||
else
|
||||
assert (#o.scope == 1 or #o.scope == 2)
|
||||
assert (#o.scope == 1 or o.scope[1] == 'global')
|
||||
local min_scope = o.scope[#o.scope]
|
||||
local varname = o.pv_name or o.varname or (
|
||||
'p_' .. (o.abbreviation or o.full_name))
|
||||
local pv_name = (
|
||||
'OPT_' .. min_scope:sub(1, 3):upper() .. '(' .. (
|
||||
min_scope:sub(1, 1):upper() .. 'V_' .. varname:sub(3):upper()
|
||||
) .. ')'
|
||||
)
|
||||
if #o.scope == 2 then
|
||||
pv_name = 'OPT_BOTH(' .. pv_name .. ')'
|
||||
end
|
||||
defines['PV_' .. varname:sub(3):upper()] = pv_name
|
||||
w(' .indir=' .. pv_name)
|
||||
end
|
||||
if o.defaults then
|
||||
if o.defaults.condition then
|
||||
w(get_cond(o.defaults.condition))
|
||||
end
|
||||
w(' .def_val=' .. get_defaults(o.defaults.if_true))
|
||||
if o.defaults.condition then
|
||||
if o.defaults.if_false then
|
||||
w('#else')
|
||||
w(' .def_val=' .. get_defaults(o.defaults.if_false))
|
||||
end
|
||||
w('#endif')
|
||||
end
|
||||
end
|
||||
w(' },')
|
||||
end
|
||||
|
||||
w('static vimoption_T options[] = {')
|
||||
for i, o in ipairs(options.options) do
|
||||
dump_option(i, o)
|
||||
end
|
||||
w(' [' .. ('%u'):format(#options.options) .. ']={.fullname=NULL}')
|
||||
w('};')
|
||||
w('')
|
||||
|
||||
for k, v in pairs(defines) do
|
||||
w('#define ' .. k .. ' ' .. v)
|
||||
end
|
||||
opt_fd:close()
|
138
scripts/genvimvim.lua
Normal file
138
scripts/genvimvim.lua
Normal file
@ -0,0 +1,138 @@
|
||||
if arg[1] == '--help' then
|
||||
print('Usage: genoptions.lua src/nvim runtime/syntax/vim/generated.vim')
|
||||
os.exit(0)
|
||||
end
|
||||
|
||||
local nvimsrcdir = arg[1]
|
||||
local syntax_file = arg[2]
|
||||
|
||||
package.path = nvimsrcdir .. '/?.lua;' .. package.path
|
||||
|
||||
local lld = {}
|
||||
local syn_fd = io.open(syntax_file, 'w')
|
||||
lld.line_length = 0
|
||||
local w = function(s)
|
||||
syn_fd:write(s)
|
||||
if s:find('\n') then
|
||||
lld.line_length = #(s:gsub('.*\n', ''))
|
||||
else
|
||||
lld.line_length = lld.line_length + #s
|
||||
end
|
||||
end
|
||||
|
||||
local options = require('options')
|
||||
local auevents = require('auevents')
|
||||
local ex_cmds = require('ex_cmds')
|
||||
|
||||
local cmd_kw = function(prev_cmd, cmd)
|
||||
if not prev_cmd then
|
||||
return cmd:sub(1, 1) .. '[' .. cmd:sub(2) .. ']'
|
||||
else
|
||||
local shift = 1
|
||||
while cmd:sub(shift, shift) == prev_cmd:sub(shift, shift) do
|
||||
shift = shift + 1
|
||||
end
|
||||
if shift >= #cmd then
|
||||
return cmd
|
||||
else
|
||||
return cmd:sub(1, shift) .. '[' .. cmd:sub(shift + 1) .. ']'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
vimcmd_start = 'syn keyword vimCommand contained '
|
||||
w(vimcmd_start)
|
||||
local prev_cmd = nil
|
||||
for _, cmd_desc in ipairs(ex_cmds) do
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. vimcmd_start)
|
||||
end
|
||||
local cmd = cmd_desc.command
|
||||
if cmd:match('%w') and cmd ~= 'z' then
|
||||
w(' ' .. cmd_kw(prev_cmd, cmd))
|
||||
end
|
||||
prev_cmd = cmd
|
||||
end
|
||||
|
||||
local vimopt_start = 'syn keyword vimOption contained '
|
||||
w('\n\n' .. vimopt_start)
|
||||
|
||||
for _, opt_desc in ipairs(options.options) do
|
||||
if not opt_desc.varname or opt_desc.varname:sub(1, 7) ~= 'p_force' then
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. vimopt_start)
|
||||
end
|
||||
w(' ' .. opt_desc.full_name)
|
||||
if opt_desc.abbreviation then
|
||||
w(' ' .. opt_desc.abbreviation)
|
||||
end
|
||||
if opt_desc.type == 'bool' then
|
||||
w(' inv' .. opt_desc.full_name)
|
||||
w(' no' .. opt_desc.full_name)
|
||||
if opt_desc.abbreviation then
|
||||
w(' inv' .. opt_desc.abbreviation)
|
||||
w(' no' .. opt_desc.abbreviation)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
w('\n\nsyn case ignore')
|
||||
local vimau_start = 'syn keyword vimAutoEvent contained '
|
||||
w('\n\n' .. vimau_start)
|
||||
|
||||
for _, au in ipairs(auevents.events) do
|
||||
if not auevents.neovim_specific[au] then
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. vimau_start)
|
||||
end
|
||||
w(' ' .. au)
|
||||
end
|
||||
end
|
||||
for au, _ in pairs(auevents.aliases) do
|
||||
if not auevents.neovim_specific[au] then
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. vimau_start)
|
||||
end
|
||||
w(' ' .. au)
|
||||
end
|
||||
end
|
||||
|
||||
local nvimau_start = 'syn keyword nvimAutoEvent contained '
|
||||
w('\n\n' .. nvimau_start)
|
||||
|
||||
for au, _ in pairs(auevents.neovim_specific) do
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. nvimau_start)
|
||||
end
|
||||
w(' ' .. au)
|
||||
end
|
||||
|
||||
w('\n\nsyn case match')
|
||||
local vimfun_start = 'syn keyword vimFuncName contained '
|
||||
w('\n\n' .. vimfun_start)
|
||||
eval_fd = io.open(nvimsrcdir .. '/eval.c', 'r')
|
||||
local started = 0
|
||||
for line in eval_fd:lines() do
|
||||
if line == '} functions[] =' then
|
||||
started = 1
|
||||
elseif started == 1 then
|
||||
assert (line == '{')
|
||||
started = 2
|
||||
elseif started == 2 then
|
||||
if line == '};' then
|
||||
break
|
||||
end
|
||||
local func_name = line:match('^ {"(%w+)",')
|
||||
if func_name then
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. vimfun_start)
|
||||
end
|
||||
w(' ' .. func_name)
|
||||
end
|
||||
end
|
||||
end
|
||||
eval_fd:close()
|
||||
|
||||
w('\n')
|
||||
syn_fd:close()
|
@ -18,8 +18,15 @@ set(HEADER_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/gendeclarations.lua)
|
||||
set(GENERATED_INCLUDES_DIR ${PROJECT_BINARY_DIR}/include)
|
||||
set(GENERATED_EX_CMDS_ENUM ${GENERATED_INCLUDES_DIR}/ex_cmds_enum.generated.h)
|
||||
set(GENERATED_EX_CMDS_DEFS ${GENERATED_DIR}/ex_cmds_defs.generated.h)
|
||||
set(GENERATED_EVENTS_ENUM ${GENERATED_INCLUDES_DIR}/auevents_enum.generated.h)
|
||||
set(GENERATED_EVENTS_NAMES_MAP ${GENERATED_DIR}/auevents_name_map.generated.h)
|
||||
set(GENERATED_OPTIONS ${GENERATED_DIR}/options.generated.h)
|
||||
set(EX_CMDS_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/genex_cmds.lua)
|
||||
set(EVENTS_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/gen_events.lua)
|
||||
set(OPTIONS_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/genoptions.lua)
|
||||
set(EVENTS_LIST_FILE ${PROJECT_SOURCE_DIR}/src/nvim/auevents.lua)
|
||||
set(EX_CMDS_DEFS_FILE ${PROJECT_SOURCE_DIR}/src/nvim/ex_cmds.lua)
|
||||
set(OPTIONS_LIST_FILE ${PROJECT_SOURCE_DIR}/src/nvim/options.lua)
|
||||
|
||||
include_directories(${GENERATED_DIR})
|
||||
include_directories(${GENERATED_INCLUDES_DIR})
|
||||
@ -149,6 +156,9 @@ list(APPEND NEOVIM_GENERATED_SOURCES
|
||||
"${MSGPACK_DISPATCH}"
|
||||
"${GENERATED_EX_CMDS_ENUM}"
|
||||
"${GENERATED_EX_CMDS_DEFS}"
|
||||
"${GENERATED_EVENTS_ENUM}"
|
||||
"${GENERATED_EVENTS_NAMES_MAP}"
|
||||
"${GENERATED_OPTIONS}"
|
||||
)
|
||||
|
||||
add_custom_command(OUTPUT ${GENERATED_EX_CMDS_ENUM} ${GENERATED_EX_CMDS_DEFS}
|
||||
@ -157,6 +167,18 @@ add_custom_command(OUTPUT ${GENERATED_EX_CMDS_ENUM} ${GENERATED_EX_CMDS_DEFS}
|
||||
DEPENDS ${EX_CMDS_GENERATOR} ${EX_CMDS_DEFS_FILE}
|
||||
)
|
||||
|
||||
add_custom_command(OUTPUT ${GENERATED_EVENTS_ENUM} ${GENERATED_EVENTS_NAMES_MAP}
|
||||
COMMAND ${LUA_PRG} ${EVENTS_GENERATOR}
|
||||
${PROJECT_SOURCE_DIR}/src/nvim ${GENERATED_EVENTS_ENUM} ${GENERATED_EVENTS_NAMES_MAP}
|
||||
DEPENDS ${EVENTS_GENERATOR} ${EVENTS_LIST_FILE}
|
||||
)
|
||||
|
||||
add_custom_command(OUTPUT ${GENERATED_OPTIONS}
|
||||
COMMAND ${LUA_PRG} ${OPTIONS_GENERATOR}
|
||||
${PROJECT_SOURCE_DIR}/src/nvim ${GENERATED_OPTIONS}
|
||||
DEPENDS ${OPTIONS_GENERATOR} ${OPTIONS_LIST_FILE}
|
||||
)
|
||||
|
||||
# Our dependencies come first.
|
||||
|
||||
if (LibIntl_FOUND)
|
||||
|
106
src/nvim/auevents.lua
Normal file
106
src/nvim/auevents.lua
Normal file
@ -0,0 +1,106 @@
|
||||
return {
|
||||
events = {
|
||||
'BufAdd', -- after adding a buffer to the buffer list
|
||||
'BufDelete', -- deleting a buffer from the buffer list
|
||||
'BufEnter', -- after entering a buffer
|
||||
'BufFilePost', -- after renaming a buffer
|
||||
'BufFilePre', -- before renaming a buffer
|
||||
'BufHidden', -- just after buffer becomes hidden
|
||||
'BufLeave', -- before leaving a buffer
|
||||
'BufNew', -- after creating any buffer
|
||||
'BufNewFile', -- when creating a buffer for a new file
|
||||
'BufReadCmd', -- read buffer using command
|
||||
'BufReadPost', -- after reading a buffer
|
||||
'BufReadPre', -- before reading a buffer
|
||||
'BufUnload', -- just before unloading a buffer
|
||||
'BufWinEnter', -- after showing a buffer in a window
|
||||
'BufWinLeave', -- just after buffer removed from window
|
||||
'BufWipeout', -- just before really deleting a buffer
|
||||
'BufWriteCmd', -- write buffer using command
|
||||
'BufWritePost', -- after writing a buffer
|
||||
'BufWritePre', -- before writing a buffer
|
||||
'CmdUndefined', -- command undefined
|
||||
'CmdWinEnter', -- after entering the cmdline window
|
||||
'CmdWinLeave', -- before leaving the cmdline window
|
||||
'ColorScheme', -- after loading a colorscheme
|
||||
'CompleteDone', -- after finishing insert complete
|
||||
'CursorHold', -- cursor in same position for a while
|
||||
'CursorHoldI', -- idem, in Insert mode
|
||||
'CursorMoved', -- cursor was moved
|
||||
'CursorMovedI', -- cursor was moved in Insert mode
|
||||
'EncodingChanged', -- after changing the 'encoding' option
|
||||
'FileAppendCmd', -- append to a file using command
|
||||
'FileAppendPost', -- after appending to a file
|
||||
'FileAppendPre', -- before appending to a file
|
||||
'FileChangedRO', -- before first change to read-only file
|
||||
'FileChangedShell', -- after shell command that changed file
|
||||
'FileChangedShellPost', -- after (not) reloading changed file
|
||||
'FileReadCmd', -- read from a file using command
|
||||
'FileReadPost', -- after reading a file
|
||||
'FileReadPre', -- before reading a file
|
||||
'FileType', -- new file type detected (user defined)
|
||||
'FileWriteCmd', -- write to a file using command
|
||||
'FileWritePost', -- after writing a file
|
||||
'FileWritePre', -- before writing a file
|
||||
'FilterReadPost', -- after reading from a filter
|
||||
'FilterReadPre', -- before reading from a filter
|
||||
'FilterWritePost', -- after writing to a filter
|
||||
'FilterWritePre', -- before writing to a filter
|
||||
'FocusGained', -- got the focus
|
||||
'FocusLost', -- lost the focus to another app
|
||||
'FuncUndefined', -- if calling a function which doesn't exist
|
||||
'GUIEnter', -- after starting the GUI
|
||||
'GUIFailed', -- after starting the GUI failed
|
||||
'InsertChange', -- when changing Insert/Replace mode
|
||||
'InsertCharPre', -- before inserting a char
|
||||
'InsertEnter', -- when entering Insert mode
|
||||
'InsertLeave', -- when leaving Insert mode
|
||||
'JobActivity', -- when job sent some data
|
||||
'MenuPopup', -- just before popup menu is displayed
|
||||
'QuickFixCmdPost', -- after :make, :grep etc.
|
||||
'QuickFixCmdPre', -- before :make, :grep etc.
|
||||
'QuitPre', -- before :quit
|
||||
'RemoteReply', -- upon string reception from a remote vim
|
||||
'SessionLoadPost', -- after loading a session file
|
||||
'ShellCmdPost', -- after ":!cmd"
|
||||
'ShellFilterPost', -- after ":1,2!cmd", ":w !cmd", ":r !cmd".
|
||||
'SourceCmd', -- sourcing a Vim script using command
|
||||
'SourcePre', -- before sourcing a Vim script
|
||||
'SpellFileMissing', -- spell file missing
|
||||
'StdinReadPost', -- after reading from stdin
|
||||
'StdinReadPre', -- before reading from stdin
|
||||
'SwapExists', -- found existing swap file
|
||||
'Syntax', -- syntax selected
|
||||
'TabClosed', -- a tab has closed
|
||||
'TabEnter', -- after entering a tab page
|
||||
'TabLeave', -- before leaving a tab page
|
||||
'TabNew', -- when creating a new tab
|
||||
'TabNewEntered', -- after entering a new tab
|
||||
'TermChanged', -- after changing 'term'
|
||||
'TermResponse', -- after setting "v:termresponse"
|
||||
'TermOpen', -- after opening a terminal buffer
|
||||
'TextChanged', -- text was modified
|
||||
'TextChangedI', -- text was modified in Insert mode
|
||||
'User', -- user defined autocommand
|
||||
'VimEnter', -- after starting Vim
|
||||
'VimLeave', -- before exiting Vim
|
||||
'VimLeavePre', -- before exiting Vim and writing .viminfo
|
||||
'VimResized', -- after Vim window was resized
|
||||
'WinEnter', -- after entering a window
|
||||
'WinLeave', -- before leaving a window
|
||||
},
|
||||
aliases = {
|
||||
BufCreate = 'BufAdd',
|
||||
BufRead = 'BufReadPost',
|
||||
BufWrite = 'BufWritePre',
|
||||
FileEncoding = 'EncodingChanged',
|
||||
},
|
||||
-- List of neovim-specific events or aliases for the purpose of generating
|
||||
-- syntax file
|
||||
neovim_specific = {
|
||||
TabNew=true,
|
||||
TabNewEntered=true,
|
||||
TabClosed=true,
|
||||
TermEnter=true,
|
||||
},
|
||||
}
|
@ -5121,116 +5121,9 @@ void forward_slash(char_u *fname)
|
||||
/*
|
||||
* Code for automatic commands.
|
||||
*/
|
||||
|
||||
|
||||
static struct event_name {
|
||||
char *name; /* event name */
|
||||
event_T event; /* event number */
|
||||
} event_names[] =
|
||||
{
|
||||
{"BufAdd", EVENT_BUFADD},
|
||||
{"BufCreate", EVENT_BUFADD},
|
||||
{"BufDelete", EVENT_BUFDELETE},
|
||||
{"BufEnter", EVENT_BUFENTER},
|
||||
{"BufFilePost", EVENT_BUFFILEPOST},
|
||||
{"BufFilePre", EVENT_BUFFILEPRE},
|
||||
{"BufHidden", EVENT_BUFHIDDEN},
|
||||
{"BufLeave", EVENT_BUFLEAVE},
|
||||
{"BufNew", EVENT_BUFNEW},
|
||||
{"BufNewFile", EVENT_BUFNEWFILE},
|
||||
{"BufRead", EVENT_BUFREADPOST},
|
||||
{"BufReadCmd", EVENT_BUFREADCMD},
|
||||
{"BufReadPost", EVENT_BUFREADPOST},
|
||||
{"BufReadPre", EVENT_BUFREADPRE},
|
||||
{"BufUnload", EVENT_BUFUNLOAD},
|
||||
{"BufWinEnter", EVENT_BUFWINENTER},
|
||||
{"BufWinLeave", EVENT_BUFWINLEAVE},
|
||||
{"BufWipeout", EVENT_BUFWIPEOUT},
|
||||
{"BufWrite", EVENT_BUFWRITEPRE},
|
||||
{"BufWritePost", EVENT_BUFWRITEPOST},
|
||||
{"BufWritePre", EVENT_BUFWRITEPRE},
|
||||
{"BufWriteCmd", EVENT_BUFWRITECMD},
|
||||
{"CmdwinEnter", EVENT_CMDWINENTER},
|
||||
{"CmdwinLeave", EVENT_CMDWINLEAVE},
|
||||
{"CmdUndefined", EVENT_CMDUNDEFINED},
|
||||
{"ColorScheme", EVENT_COLORSCHEME},
|
||||
{"CompleteDone", EVENT_COMPLETEDONE},
|
||||
{"CursorHold", EVENT_CURSORHOLD},
|
||||
{"CursorHoldI", EVENT_CURSORHOLDI},
|
||||
{"CursorMoved", EVENT_CURSORMOVED},
|
||||
{"CursorMovedI", EVENT_CURSORMOVEDI},
|
||||
{"EncodingChanged", EVENT_ENCODINGCHANGED},
|
||||
{"FileEncoding", EVENT_ENCODINGCHANGED},
|
||||
{"FileAppendPost", EVENT_FILEAPPENDPOST},
|
||||
{"FileAppendPre", EVENT_FILEAPPENDPRE},
|
||||
{"FileAppendCmd", EVENT_FILEAPPENDCMD},
|
||||
{"FileChangedShell",EVENT_FILECHANGEDSHELL},
|
||||
{"FileChangedShellPost",EVENT_FILECHANGEDSHELLPOST},
|
||||
{"FileChangedRO", EVENT_FILECHANGEDRO},
|
||||
{"FileReadPost", EVENT_FILEREADPOST},
|
||||
{"FileReadPre", EVENT_FILEREADPRE},
|
||||
{"FileReadCmd", EVENT_FILEREADCMD},
|
||||
{"FileType", EVENT_FILETYPE},
|
||||
{"FileWritePost", EVENT_FILEWRITEPOST},
|
||||
{"FileWritePre", EVENT_FILEWRITEPRE},
|
||||
{"FileWriteCmd", EVENT_FILEWRITECMD},
|
||||
{"FilterReadPost", EVENT_FILTERREADPOST},
|
||||
{"FilterReadPre", EVENT_FILTERREADPRE},
|
||||
{"FilterWritePost", EVENT_FILTERWRITEPOST},
|
||||
{"FilterWritePre", EVENT_FILTERWRITEPRE},
|
||||
{"FocusGained", EVENT_FOCUSGAINED},
|
||||
{"FocusLost", EVENT_FOCUSLOST},
|
||||
{"FuncUndefined", EVENT_FUNCUNDEFINED},
|
||||
{"GUIEnter", EVENT_GUIENTER},
|
||||
{"GUIFailed", EVENT_GUIFAILED},
|
||||
{"InsertChange", EVENT_INSERTCHANGE},
|
||||
{"InsertEnter", EVENT_INSERTENTER},
|
||||
{"InsertLeave", EVENT_INSERTLEAVE},
|
||||
{"InsertCharPre", EVENT_INSERTCHARPRE},
|
||||
{"MenuPopup", EVENT_MENUPOPUP},
|
||||
{"QuickFixCmdPost", EVENT_QUICKFIXCMDPOST},
|
||||
{"QuickFixCmdPre", EVENT_QUICKFIXCMDPRE},
|
||||
{"QuitPre", EVENT_QUITPRE},
|
||||
{"RemoteReply", EVENT_REMOTEREPLY},
|
||||
{"SessionLoadPost", EVENT_SESSIONLOADPOST},
|
||||
{"ShellCmdPost", EVENT_SHELLCMDPOST},
|
||||
{"ShellFilterPost", EVENT_SHELLFILTERPOST},
|
||||
{"SourcePre", EVENT_SOURCEPRE},
|
||||
{"SourceCmd", EVENT_SOURCECMD},
|
||||
{"SpellFileMissing",EVENT_SPELLFILEMISSING},
|
||||
{"StdinReadPost", EVENT_STDINREADPOST},
|
||||
{"StdinReadPre", EVENT_STDINREADPRE},
|
||||
{"SwapExists", EVENT_SWAPEXISTS},
|
||||
{"Syntax", EVENT_SYNTAX},
|
||||
{"TabClosed", EVENT_TABCLOSED},
|
||||
{"TabEnter", EVENT_TABENTER},
|
||||
{"TabLeave", EVENT_TABLEAVE},
|
||||
{"TabNew", EVENT_TABNEW},
|
||||
{"TabNewEntered", EVENT_TABNEWENTERED},
|
||||
{"TermChanged", EVENT_TERMCHANGED},
|
||||
{"TermOpen", EVENT_TERMOPEN},
|
||||
{"TermResponse", EVENT_TERMRESPONSE},
|
||||
{"TextChanged", EVENT_TEXTCHANGED},
|
||||
{"TextChangedI", EVENT_TEXTCHANGEDI},
|
||||
{"User", EVENT_USER},
|
||||
{"VimEnter", EVENT_VIMENTER},
|
||||
{"VimLeave", EVENT_VIMLEAVE},
|
||||
{"VimLeavePre", EVENT_VIMLEAVEPRE},
|
||||
{"WinEnter", EVENT_WINENTER},
|
||||
{"WinLeave", EVENT_WINLEAVE},
|
||||
{"VimResized", EVENT_VIMRESIZED},
|
||||
{NULL, (event_T)0}
|
||||
};
|
||||
|
||||
static AutoPat *first_autopat[NUM_EVENTS] =
|
||||
{
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
|
||||
};
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "auevents_name_map.generated.h"
|
||||
#endif
|
||||
|
||||
static AutoPatCmd *active_apc_list = NULL; /* stack of active autocommands */
|
||||
|
||||
@ -5526,7 +5419,7 @@ static event_T event_name2nr(char_u *start, char_u **end)
|
||||
for (p = start; *p && !ascii_iswhite(*p) && *p != ','; ++p)
|
||||
;
|
||||
for (i = 0; event_names[i].name != NULL; ++i) {
|
||||
len = (int)STRLEN(event_names[i].name);
|
||||
len = (int) event_names[i].len;
|
||||
if (len == p - start && STRNICMP(event_names[i].name, start, len) == 0)
|
||||
break;
|
||||
}
|
||||
|
@ -12,100 +12,6 @@
|
||||
#define READ_DUMMY 0x10 /* reading into a dummy buffer */
|
||||
#define READ_KEEP_UNDO 0x20 /* keep undo info*/
|
||||
|
||||
/*
|
||||
* Events for autocommands.
|
||||
*/
|
||||
typedef enum auto_event {
|
||||
EVENT_BUFADD = 0, /* after adding a buffer to the buffer list */
|
||||
EVENT_BUFNEW, /* after creating any buffer */
|
||||
EVENT_BUFDELETE, /* deleting a buffer from the buffer list */
|
||||
EVENT_BUFWIPEOUT, /* just before really deleting a buffer */
|
||||
EVENT_BUFENTER, /* after entering a buffer */
|
||||
EVENT_BUFFILEPOST, /* after renaming a buffer */
|
||||
EVENT_BUFFILEPRE, /* before renaming a buffer */
|
||||
EVENT_BUFLEAVE, /* before leaving a buffer */
|
||||
EVENT_BUFNEWFILE, /* when creating a buffer for a new file */
|
||||
EVENT_BUFREADPOST, /* after reading a buffer */
|
||||
EVENT_BUFREADPRE, /* before reading a buffer */
|
||||
EVENT_BUFREADCMD, /* read buffer using command */
|
||||
EVENT_BUFUNLOAD, /* just before unloading a buffer */
|
||||
EVENT_BUFHIDDEN, /* just after buffer becomes hidden */
|
||||
EVENT_BUFWINENTER, /* after showing a buffer in a window */
|
||||
EVENT_BUFWINLEAVE, /* just after buffer removed from window */
|
||||
EVENT_BUFWRITEPOST, /* after writing a buffer */
|
||||
EVENT_BUFWRITEPRE, /* before writing a buffer */
|
||||
EVENT_BUFWRITECMD, /* write buffer using command */
|
||||
EVENT_CMDWINENTER, /* after entering the cmdline window */
|
||||
EVENT_CMDWINLEAVE, /* before leaving the cmdline window */
|
||||
EVENT_COLORSCHEME, /* after loading a colorscheme */
|
||||
EVENT_COMPLETEDONE, /* after finishing insert complete */
|
||||
EVENT_FILEAPPENDPOST, /* after appending to a file */
|
||||
EVENT_FILEAPPENDPRE, /* before appending to a file */
|
||||
EVENT_FILEAPPENDCMD, /* append to a file using command */
|
||||
EVENT_FILECHANGEDSHELL, /* after shell command that changed file */
|
||||
EVENT_FILECHANGEDSHELLPOST, /* after (not) reloading changed file */
|
||||
EVENT_FILECHANGEDRO, /* before first change to read-only file */
|
||||
EVENT_FILEREADPOST, /* after reading a file */
|
||||
EVENT_FILEREADPRE, /* before reading a file */
|
||||
EVENT_FILEREADCMD, /* read from a file using command */
|
||||
EVENT_FILETYPE, /* new file type detected (user defined) */
|
||||
EVENT_FILEWRITEPOST, /* after writing a file */
|
||||
EVENT_FILEWRITEPRE, /* before writing a file */
|
||||
EVENT_FILEWRITECMD, /* write to a file using command */
|
||||
EVENT_FILTERREADPOST, /* after reading from a filter */
|
||||
EVENT_FILTERREADPRE, /* before reading from a filter */
|
||||
EVENT_FILTERWRITEPOST, /* after writing to a filter */
|
||||
EVENT_FILTERWRITEPRE, /* before writing to a filter */
|
||||
EVENT_FOCUSGAINED, /* got the focus */
|
||||
EVENT_FOCUSLOST, /* lost the focus to another app */
|
||||
EVENT_GUIENTER, /* after starting the GUI */
|
||||
EVENT_GUIFAILED, /* after starting the GUI failed */
|
||||
EVENT_INSERTCHANGE, /* when changing Insert/Replace mode */
|
||||
EVENT_INSERTENTER, /* when entering Insert mode */
|
||||
EVENT_INSERTLEAVE, /* when leaving Insert mode */
|
||||
EVENT_MENUPOPUP, /* just before popup menu is displayed */
|
||||
EVENT_QUICKFIXCMDPOST, /* after :make, :grep etc. */
|
||||
EVENT_QUICKFIXCMDPRE, /* before :make, :grep etc. */
|
||||
EVENT_QUITPRE, /* before :quit */
|
||||
EVENT_SESSIONLOADPOST, /* after loading a session file */
|
||||
EVENT_STDINREADPOST, /* after reading from stdin */
|
||||
EVENT_STDINREADPRE, /* before reading from stdin */
|
||||
EVENT_SYNTAX, /* syntax selected */
|
||||
EVENT_TERMCHANGED, /* after changing 'term' */
|
||||
EVENT_TERMRESPONSE, /* after setting "v:termresponse" */
|
||||
EVENT_USER, /* user defined autocommand */
|
||||
EVENT_VIMENTER, /* after starting Vim */
|
||||
EVENT_VIMLEAVE, /* before exiting Vim */
|
||||
EVENT_VIMLEAVEPRE, /* before exiting Vim and writing .viminfo */
|
||||
EVENT_VIMRESIZED, /* after Vim window was resized */
|
||||
EVENT_WINENTER, /* after entering a window */
|
||||
EVENT_WINLEAVE, /* before leaving a window */
|
||||
EVENT_ENCODINGCHANGED, /* after changing the 'encoding' option */
|
||||
EVENT_INSERTCHARPRE, /* before inserting a char */
|
||||
EVENT_CURSORHOLD, /* cursor in same position for a while */
|
||||
EVENT_CURSORHOLDI, /* idem, in Insert mode */
|
||||
EVENT_FUNCUNDEFINED, /* if calling a function which doesn't exist */
|
||||
EVENT_REMOTEREPLY, /* upon string reception from a remote vim */
|
||||
EVENT_SWAPEXISTS, /* found existing swap file */
|
||||
EVENT_SOURCEPRE, /* before sourcing a Vim script */
|
||||
EVENT_SOURCECMD, /* sourcing a Vim script using command */
|
||||
EVENT_SPELLFILEMISSING, /* spell file missing */
|
||||
EVENT_CURSORMOVED, /* cursor was moved */
|
||||
EVENT_CURSORMOVEDI, /* cursor was moved in Insert mode */
|
||||
EVENT_TABCLOSED, /* a tab has closed */
|
||||
EVENT_TABLEAVE, /* before leaving a tab page */
|
||||
EVENT_TABENTER, /* after entering a tab page */
|
||||
EVENT_TABNEW, /* when creating a new tab */
|
||||
EVENT_TABNEWENTERED, /* after entering a new tab */
|
||||
EVENT_SHELLCMDPOST, /* after ":!cmd" */
|
||||
EVENT_SHELLFILTERPOST, /* after ":1,2!cmd", ":w !cmd", ":r !cmd". */
|
||||
EVENT_TERMOPEN, // after opening a terminal buffer
|
||||
EVENT_TEXTCHANGED, /* text was modified */
|
||||
EVENT_TEXTCHANGEDI, /* text was modified in Insert mode*/
|
||||
EVENT_CMDUNDEFINED, ///< command undefined
|
||||
NUM_EVENTS /* MUST be the last one */
|
||||
} event_T;
|
||||
|
||||
/*
|
||||
* Struct to save values in before executing autocommands for a buffer that is
|
||||
* not the current buffer.
|
||||
@ -120,6 +26,8 @@ typedef struct {
|
||||
} aco_save_T;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
// Events for autocommands
|
||||
# include "auevents_enum.generated.h"
|
||||
# include "fileio.h.generated.h"
|
||||
#endif
|
||||
#endif // NVIM_FILEIO_H
|
||||
|
1414
src/nvim/option.c
1414
src/nvim/option.c
File diff suppressed because it is too large
Load Diff
2777
src/nvim/options.lua
Normal file
2777
src/nvim/options.lua
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user