Commit Graph

16198 Commits

Author SHA1 Message Date
Steven Sojka
fb55cb2d91
fix(highlight): compare rows vs columns in range highlight check (#12852) 2020-09-05 17:22:54 -04:00
Justin M. Keyes
858c056133
Support for :perl, :perlfile, :perldo and perleval() (#12809)
* support for :perl, :perlfile, :perldo and perleval()

* document that the perl provider doesn't currently work on Windows

* document that the perl legacy interface is now also supported

* added perleval() documentation

* import legacy perl interface tests

* only perl 5.22+ is supported

* healtcheck: use g:perl_host_prog if its set instead

using just 'perl' isn't correct as it may not be the version requested.
ditto for 'cpanm', rather go through 'App::cpanminus' to find the latest
perl version
2020-09-05 13:55:06 -07:00
Björn Linse
8b5c6a1b73
Merge pull request #12838 from bfredl/screenshot
nvim__screenshot
2020-09-05 22:54:25 +02:00
kiyan42
981f3f17a0 treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name 2020-09-05 21:43:40 +02:00
Jan Edmund Lazo
2cea6ab012
vim-patch:8.2.1586: :resize command not fully tested (#12853)
Problem:    :resize command not fully tested.
Solution:   Add a couple of tests. (Dominique Pellé, closes vim/vim#6857)
fe6dce8739
2020-09-05 12:31:45 -07:00
Jacques Germishuys
8705fbf77c healtcheck: use g:perl_host_prog if its set instead
using just 'perl' isn't correct as it may not be the version requested.
ditto for 'cpanm', rather go through 'App::cpanminus' to find the latest
perl version
2020-09-05 13:09:15 +01:00
Björn Linse
a1508c9f6d nvim__screenshot 2020-09-05 13:33:21 +02:00
Björn Linse
7b1b271f43
Merge pull request #12788 from bfredl/nulloffset-1
robustness: avoid adding offset to NULL pointer
2020-09-05 13:32:58 +02:00
Björn Linse
b33e375b2b robustness: avoid adding offset to NULL pointer
UBSAN with clang 10.0 is checking for adding offsets to a `NULL` pointer
which is not allowed. This is not yet checked in the version of clang
used in CI (7.0.0). I will work on cases of this so that tests passes
locally for me.

This could be tested in CI by either upgrading the clang of the
ASAN/UBSAN to 10.0, or add yet another CI target which builds with
clang 10.0.
2020-09-04 23:29:51 +02:00
Björn Linse
7593c8012b treesitter: update runtime 2020-09-04 20:59:00 +02:00
Björn Linse
3853276d9c
Merge pull request #12850 from bfredl/oopsie
API: be less breaking in the decorations
2020-09-04 20:48:13 +02:00
Björn Linse
866308c3de API: be less breaking in the christmas tree decorations 2020-09-04 19:11:26 +02:00
James McCoy
33bf6f9ada
ci: Try to recover from sanitizer issues
When running in CI, we want to find as many problems as possible
instead.  Let the code try to keep running from recoverable issues so we
report all the sanitize issues we can.
2020-09-04 11:09:25 -04:00
Björn Linse
1e14dacd08
Merge pull request #12847 from nvim-treesitter/ts-list-predicates
treesitter: allow to list supported predicates
2020-09-04 17:01:49 +02:00
James McCoy
74ad66404f
suggest_trie_walk: Remove invalid FALLTHROUGH annotation 2020-09-04 10:59:16 -04:00
James McCoy
2516386c6b
travis: Install clang-11 for ASAN/UBSAN job
[skip appveyor]
2020-09-04 10:59:16 -04:00
James McCoy
16e69eae70
travis: Relax pyenv versions to 2.7:3.8
We don't care about the specifics of the patch version, so just set the
major:minor.

[skip appveyor]
2020-09-04 10:59:15 -04:00
James McCoy
f7434bab73
travis: Install powershell via "snaps" addon
[skip appveyor]
2020-09-04 10:59:15 -04:00
James McCoy
89ed96fab9
travis: Bump Linux dist to bionic
[skip appveyor]
2020-09-04 10:59:08 -04:00
Björn Linse
ef5a09d4fc
Merge pull request #12816 from vigoux/decorations
New Decorations API (not finalized, but we gonna build on this)
2020-09-04 16:39:48 +02:00
James McCoy
dd465bbccc
Merge pull request #12848 from jamessan/vim-8.2.1552 2020-09-04 10:16:57 -04:00
Thomas Vigouroux
3fd6e3b923 treesitter: allow to list supported predicates 2020-09-04 15:24:23 +02:00
James McCoy
b163a89925
vim-patch.sh: Fix PR subject with multiple patches 2020-09-04 08:46:46 -04:00
James McCoy
5707982bd3
lint 2020-09-04 08:27:33 -04:00
James McCoy
1190192216
vim-patch:8.2.1560: using NULL pointers in some code
Problem:    Using NULL pointers in some code. (James McCoy)
Solution:   Avoid adding to a NULL pointer.  Use byte as unsigned.
9c2b06637b

The changes to eval.c (skip_expr_concatenate) and vim9compile.c aren't
included since they're specific to vim9script support.
2020-09-04 08:25:33 -04:00
James McCoy
ae8f108732
vim-patch:8.2.1553: crash in edit test
Problem:    Crash in edit test.
Solution:   Avoid using invalid pointer.
2c93c685e3
2020-09-04 08:25:25 -04:00
James McCoy
0c851e5226
vim-patch:8.2.1552: warnings from asan with clang-11
Problem:    Warnings from asan with clang-11. (James McCoy)
Solution:   Avoid using a NULL pointer. (issue vim/vim#6811)
64f37d3090
2020-09-03 23:00:24 -04:00
Thomas Vigouroux
1832d18083 treesitter: update to use buf_set_extmark 2020-09-03 15:40:31 +02:00
Björn Linse
49f5b57587 decor: sketch new decorations API
return decorations back

lol no nvim_buf_get_virtual_text

share decorations that are hl only to avoid alloc avalanche
2020-09-03 15:40:24 +02:00
Jacques Germishuys
98dea93ba0 only perl 5.22+ is supported 2020-09-03 09:57:59 +01:00
Jacques Germishuys
d802658ebb import legacy perl interface tests 2020-09-03 09:57:59 +01:00
Jacques Germishuys
7725fd9880 added perleval() documentation 2020-09-03 09:57:59 +01:00
Jacques Germishuys
8c6e96bb50 document that the perl legacy interface is now also supported 2020-09-03 09:57:59 +01:00
Björn Linse
d3302573ba extmark: move id to dict in nvim_buf_set_extmark 2020-09-03 10:23:52 +02:00
Björn Linse
54ce1010e8 extmark: refiy "Decoration" abstraction
one very important thought
2020-09-03 10:23:52 +02:00
Justin M. Keyes
3acfefb63e
Merge #12827 'vim-patch:8.2.{1554,1561,1564,1565,1566}' 2020-09-02 22:31:31 -07:00
Jan Edmund Lazo
5fcdb63025
vim-patch:8.2.1564: a few remaining errors from ubsan
Problem:    A few remaining errors from ubsan.
Solution:   Avoid the warnings. (Dominique Pellé, closes vim/vim#6837)
4ad739fc05
2020-09-02 22:44:21 -04:00
Jan Edmund Lazo
b9430fe28e
vim-patch:8.2.1566: not all Bazel files are recognized
Problem:    Not all Bazel files are recognized.
Solution:   Add *.bazel and *.BUILD. (closes vim/vim#6836)
4488f5a545
2020-09-02 21:59:36 -04:00
Jan Edmund Lazo
4bcca0baa9
vim-patch:8.2.1565: spellfile test sometimes fails
Problem:    Spellfile test sometimes fails.
Solution:   Check running into the end of the file.
e90d63ea90
2020-09-02 09:10:50 -04:00
Jan Edmund Lazo
cc64f2cc1d
vim-patch:8.2.1561: using NULL pointers in fold code
Problem:    Using NULL pointers in fold code.
Solution:   Avoid using a NULL pointer. (Dominique Pellé, closes vim/vim#6831,
            closes vim/vim#6831)
81fcb67fb3
2020-09-02 09:10:50 -04:00
Jan Edmund Lazo
22e9aadc88
vim-patch:8.2.1554: crash in normal test
Problem:    Crash in normal test.
Solution:   Skip adjusting marks if there are no folds.
07e87e9eb5
2020-09-02 08:57:43 -04:00
Justin M. Keyes
948e625e1e
Merge #12468 'lsp: logging' 2020-09-01 20:50:08 -07:00
Gıyaseddin Tanrıkulu
e86b15b25c
lsp/make_position_param(): handle empty buffer #12825
Fix  #12623

problem: nvim_buf_get_lines(0) returns empty during startup, where no buffers are loaded yet.
solution: return empty object

Happens during startup, where buffer may not be loaded yet, because...
`source_startup_scripts()` is done before `edit_buffers()`:
9bb552875d/src/nvim/main.c (L362)
9bb552875d/src/nvim/main.c (L480)
2020-09-01 20:45:47 -07:00
Jacques Germishuys
a166c2aadb
eval_call_provider(): free unused return value #12819
Caller can pass discard=true to free the unwanted return value.
2020-09-01 20:22:42 -07:00
Thomas Vigouroux
4bcf54478a
Merge pull request #12814 from theHamsta/escape-queries
treesitter: avoid escaping complete query strings
2020-09-01 12:50:21 +02:00
Björn Linse
04ab26b885
Merge pull request #12736 from vigoux/ts-iter-children
treesitter: allow to iterate over node children
2020-09-01 10:52:55 +02:00
DDoSolitary
c14a9f6fcc
g📋 allow command given as a list #12775
fixes #12768
2020-09-01 00:27:38 -07:00
Thomas Vigouroux
18217b987f treesitter: add node:field() to get field children 2020-09-01 08:57:55 +02:00
Michel Alexandre Salim
a50cf35bda
build/FindLua.cmake: allow Lua 5.4 #12820
Lua 5.4 is out, and will be shipped with Fedora 33.
2020-08-31 22:06:59 -07:00
Stephan Seitz
b058c671d2 treesitter: avoid escaping complete query strings
Escape "\\" only for `vim-match?` not for `match?`
Fixes #12595
2020-08-31 17:24:38 +02:00