mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
3d948a4dc4
This is a collection of various PRs from github that all require a minor
patch number:
1) https://github.com/vim/vim/pull/12612
Do not conflate dictionary key with end of block
2) https://github.com/vim/vim/pull/12729:
When saving and restoring 'undolevels', the constructs `&undolevels` and
`:set undolevels` are problematic.
The construct `&undolevels` reads an unpredictable value; it will be the
local option value (if one has been set), or the global option value
(otherwise), making it unsuitable for saving a value for later
restoration.
Similarly, if a local option value has been set for 'undolevels',
temporarily modifying the option via `:set undolevels` changes the local
value as well as the global value, requiring extra work to restore both
values.
Saving and restoring the option value in one step via the construct
`:let &undolevels = &undolevels` appears to make no changes to the
'undolevels' option, but if a local option has been set to a different
value than the global option, it has the unintended effect of changing
the global 'undolevels' value to the local value.
Update the documentation to explain these issues and recommend explicit
use of global and local option values when saving and restoring. Update
some unit tests to use `g:undolevels`.
3) https://github.com/vim/vim/pull/12702:
Problem: Pip requirements files are not recognized.
Solution: Add a pattern to match pip requirements files.
4) https://github.com/vim/vim/pull/12688:
Add indent file and tests for ABB Rapid
5) https://github.com/vim/vim/pull/12668:
Use Lua 5.1 numeric escapes in tests and add to CI
Only Lua 5.2+ and LuaJIT understand hexadecimal escapes in strings. Lua
5.1 only supports decimal escapes:
> A character in a string can also be specified by its numerical value
> using the escape sequence \ddd, where ddd is a sequence of up to three
> decimal digits. (Note that if a numerical escape is to be followed by a
> digit, it must be expressed using exactly three digits.) Strings in Lua
> can contain any 8-bit value, including embedded zeros, which can be
> specified as '\0'.
To make sure this works with Lua 5.4 and Lua 5.1 change the Vim CI to
run with Lua 5.1 as well as Lua 5.4
6) https://github.com/vim/vim/pull/12631:
Add hurl filetype detection
7) https://github.com/vim/vim/pull/12573:
Problem: Files for haskell persistent library are not recognized
Solution: Add pattern persistentmodels for haskell persistent library
closes: vim/vim#12612
closes: vim/vim#12729
closes: vim/vim#12702
closes: vim/vim#12688
closes: vim/vim#12668
closes: vim/vim#12631
closes: vim/vim#12573
Already ported but wasn't marked: vim-patch:ad34abee2583
|
||
---|---|---|
.. | ||
testdir | ||
aap.vim | ||
ada.vim | ||
ant.vim | ||
automake.vim | ||
awk.vim | ||
bash.vim | ||
basic.vim | ||
bib.vim | ||
bitbake.vim | ||
bst.vim | ||
bzl.vim | ||
c.vim | ||
cdl.vim | ||
ch.vim | ||
chaiscript.vim | ||
changelog.vim | ||
chatito.vim | ||
clojure.vim | ||
cmake.vim | ||
cobol.vim | ||
config.vim | ||
context.vim | ||
cpp.vim | ||
cs.vim | ||
css.vim | ||
cucumber.vim | ||
cuda.vim | ||
d.vim | ||
dictconf.vim | ||
dictdconf.vim | ||
docbk.vim | ||
dosbatch.vim | ||
dtd.vim | ||
dtrace.vim | ||
dts.vim | ||
dune.vim | ||
dylan.vim | ||
eiffel.vim | ||
elm.vim | ||
erlang.vim | ||
eruby.vim | ||
eterm.vim | ||
expect.vim | ||
falcon.vim | ||
fennel.vim | ||
fish.vim | ||
fortran.vim | ||
framescript.vim | ||
freebasic.vim | ||
gitconfig.vim | ||
gitolite.vim | ||
go.vim | ||
gyp.vim | ||
haml.vim | ||
hamster.vim | ||
hare.vim | ||
hog.vim | ||
html.vim | ||
htmldjango.vim | ||
idlang.vim | ||
ishd.vim | ||
j.vim | ||
java.vim | ||
javascript.vim | ||
javascriptreact.vim | ||
json.vim | ||
jsonc.vim | ||
jsp.vim | ||
julia.vim | ||
krl.vim | ||
ld.vim | ||
less.vim | ||
lifelines.vim | ||
liquid.vim | ||
lisp.vim | ||
livebook.vim | ||
logtalk.vim | ||
lua.vim | ||
luau.vim | ||
mail.vim | ||
make.vim | ||
Makefile | ||
matlab.vim | ||
meson.vim | ||
mf.vim | ||
mma.vim | ||
mp.vim | ||
nginx.vim | ||
nsis.vim | ||
objc.vim | ||
obse.vim | ||
ocaml.vim | ||
occam.vim | ||
pascal.vim | ||
perl.vim | ||
php.vim | ||
postscr.vim | ||
pov.vim | ||
prolog.vim | ||
ps1.vim | ||
pyrex.vim | ||
python.vim | ||
qb64.vim | ||
quarto.vim | ||
query.lua | ||
r.vim | ||
racket.vim | ||
raku.vim | ||
raml.vim | ||
rapid.vim | ||
readline.vim | ||
README.txt | ||
rhelp.vim | ||
rmd.vim | ||
rnoweb.vim | ||
rpl.vim | ||
rrst.vim | ||
rst.vim | ||
ruby.vim | ||
rust.vim | ||
sas.vim | ||
sass.vim | ||
scala.vim | ||
scheme.vim | ||
scss.vim | ||
sdl.vim | ||
sh.vim | ||
sml.vim | ||
solidity.vim | ||
sql.vim | ||
sqlanywhere.vim | ||
sshconfig.vim | ||
systemverilog.vim | ||
tcl.vim | ||
tcsh.vim | ||
teraterm.vim | ||
tex.vim | ||
tf.vim | ||
tilde.vim | ||
treetop.vim | ||
typescript.vim | ||
vb.vim | ||
verilog.vim | ||
vhdl.vim | ||
vim.vim | ||
vroom.vim | ||
vue.vim | ||
wast.vim | ||
xf86conf.vim | ||
xhtml.vim | ||
xinetd.vim | ||
xml.vim | ||
xsd.vim | ||
xslt.vim | ||
yacc.vim | ||
yaml.vim | ||
zig.vim | ||
zimbu.vim | ||
zsh.vim |
This directory contains files to automatically compute the indent for a type of file. If you want to add your own indent file for your personal use, read the docs at ":help indent-expression". Looking at the existing files should give you inspiration. If you make a new indent file which would be useful for others, please send it to Bram@vim.org. Include instructions for detecting the file type for this language, by file name extension or by checking a few lines in the file. And please stick to the rules below. If you have remarks about an existing file, send them to the maintainer of that file. Only when you get no response send a message to Bram@vim.org. If you are the maintainer of an indent file and make improvements, e-mail the new version to Bram@vim.org. Rules for making an indent file: You should use this check for "b:did_indent": " Only load this indent file when no other was loaded yet. if exists("b:did_indent") finish endif let b:did_indent = 1 Always use ":setlocal" to set 'indentexpr'. This avoids it being carried over to other buffers. To trigger the indenting after typing a word like "endif", add the word to the 'indentkeys' option with "+=". You normally set 'indentexpr' to evaluate a function and then define that function. That function only needs to be defined once for as long as Vim is running. Add a test if the function exists and use ":finish", like this: if exists("*GetMyIndent") finish endif The user may have several options set unlike you, try to write the file such that it works with any option settings. Also be aware of certain features not being compiled in. To test the indent file, see testdir/README.txt.