ZyX
3735537a50
viml/parser/expressions: Fix call inside nested parenthesis
...
It may have incorrectly tried to call everything because of essentially “value”
nodes being treated as not such.
2017-10-15 19:13:48 +03:00
ZyX
f33543377e
viml/parser/expressions: Add a way to represent tokens from C code
2017-10-15 19:13:47 +03:00
Björn Linse
4b3e51d4ee
ops: save and restore clipboard batch status when entering cmdline window
2017-10-15 16:36:00 +02:00
James McCoy
dc513f7618
getcmdline_prompt: Temporarily disable msg_silent so prompt is displayed
...
vim-patch:7.4.1636
Closes #7378
2017-10-14 14:32:27 -04:00
ckelsel
97dc1350f0
vim-patch:8.0.0183 NA
...
Problem: Ubsan warns for using a pointer that is not aligned.
Solution: First copy the address. (Yegappan Lakshmanan)
7173b47958
2017-10-10 14:54:52 +08:00
ckelsel
d2b0c5838a
Merge branch 'master' of github.com:ckelsel/neovim into vim-8.0.0101
2017-10-10 14:50:13 +08:00
Justin M. Keyes
77f1392f07
Merge #7327 from ckelsel/vim-8.0.0131
2017-10-09 22:56:30 +02:00
ZyX
9fa8f7fc0a
viml/parser/expressions: Add a way to adjust lexer
...
It also adds support for kExprLexOr which for some reason was forgotten.
It was only made sure that KLEE test compiles in non-KLEE mode, not that
something works or that KLEE is able to run tests.
2017-10-08 22:25:08 +03:00
ZyX
0987d3b10f
viml/parser/expressions: Make curly braces name actually work
2017-10-08 22:25:07 +03:00
ZyX
3cc65ac054
viml/parser/expressions: Make commas actually work when calling
2017-10-08 22:25:07 +03:00
ZyX
d4782fb1ca
viml/parser/expressions: Make commas actually work when calling
2017-10-08 22:25:06 +03:00
ZyX
7980614650
viml/parser/expressions: Add support for figure braces (three kinds)
2017-10-08 22:25:06 +03:00
ZyX
7c97f78393
klee: Start preparing for klee tests
...
First stage: something compiling without klee, but with a buch of dirty
hacks - done.
Second stage: something running under klee, able to emit useful results,
but still using dirty hacks - done.
Third stage: make CMake care about clang argumnets - not done, may be
omitted if proves to be too hard. Not that klee can be run on CI in any
case.
2017-10-08 22:25:05 +03:00
ZyX
430e516d3a
viml/parser/expressions: Start creating expressions parser
...
Currently supported nodes:
- Register as it is one of the simplest value nodes (even numbers are
not that simple with that dot handling).
- Plus, both unary and binary.
- Parenthesis, both nesting and calling.
Note regarding unit tests: it stores data for AST in highlighting in
strings in place of tables because luassert fails to do a good job at
representing big tables. Squashing a bunch of data into a single string
simply yields more readable result.
2017-10-08 22:25:03 +03:00
Justin M. Keyes
db999821d4
Merge #7082 'api: nvim_get_hl_by_name/by_id'
2017-10-08 21:19:02 +02:00
Justin M. Keyes
52517321d1
test: nvim_get_hl_by_name/by_id #7082
...
- test all properties
- test failure modes
2017-10-08 21:17:20 +02:00
ZyX
1265da0288
viml/parser: Add helper functions for highlighting
2017-10-08 22:12:00 +03:00
ZyX
2d8b9937de
viml/parser: Handle encoding conversions
2017-10-08 22:11:59 +03:00
ZyX
0300c4d109
viml/expressions: Add lexer with some basic tests
2017-10-08 22:11:57 +03:00
ZyX
ad58e50b45
kvec: Add kv_Z which is like kv_A, but zero is the last value
2017-10-08 22:11:57 +03:00
Justin M. Keyes
04187a1c74
Merge #7082 'api: nvim_get_hl_by_name/by_id'
2017-10-08 19:09:14 +02:00
KunMing Xie
1663599beb
vim-patch:8.0.0164 ( #7368 )
...
Problem: Outdated and misplaced comments.
Solution: Fix the comments.
caa55b65c2
2017-10-08 18:52:57 +02:00
KunMing Xie
4b2592d7b6
Merge branch 'master' into vim-8.0.0131
2017-10-08 09:33:20 +08:00
Justin M. Keyes
032b088c84
Merge #7364 lower priority of 'cursorline', 'cursorcolumn'
2017-10-07 19:11:05 +02:00
Justin M. Keyes
d916ea107a
resettitle(): remove conditions ( #7360 )
...
These conditions were added in #7358 for no apparent reason.
ref https://github.com/neovim/neovim/pull/7358#discussion_r143064448
2017-10-07 18:05:02 +02:00
KunMing Xie
e3ca1e6046
vim-patch:8.0.0142 ( #7335 )
...
see also #7082
Problem: Normal colors are wrong with 'termguicolors'.
Solution: Initialize to INVALCOLOR instead of zero. (Ben Jackson, closes vim/vim#1344 )
0cdb72aa38
2017-10-07 17:20:34 +02:00
ckelsel
c0e45d97b0
vim-patch:8.0.0148 #7344
...
Problem: When a C preprocessor statement has two line continuations the
following line does not have the right indent. (Ken Takata)
Solution: Add the indent of the previous continuation line. (Hirohito
Higashi)
c6aa475a27
2017-10-07 17:10:37 +02:00
Justin M. Keyes
d1874ab282
syntax: 'cursorline': low priority #6380
2017-10-07 16:45:15 +02:00
Justin M. Keyes
7a832c312f
syntax: 'cursorcolumn', 'colorcolumn': low priority #6380
2017-10-07 16:31:34 +02:00
KunMing Xie
9ad7529f70
vim-patch:8.0.0157 ( #7362 )
...
Problem: No command line completion for ":syntax spell" and ":syntax sync".
Solution: Implement the completion. (Dominique Pelle)
2d02839050
2017-10-07 14:32:37 +02:00
Andrew Ferreira
a4019bc9f6
eval.c: ga_concat_esc() #7357
...
vim-patch:2368917d8f0c0a997eac7a51ddfaa748dc528392
closes #7256
2017-10-07 12:45:23 +02:00
Justin M. Keyes
73b50de925
'titleold': move logic to getout()
2017-10-05 09:49:17 +02:00
Justin M. Keyes
70e84a7c4c
'titleold': simplify behavior
...
- default 'titleold' to empty
- set title on exit if 'title' is enabled and 'titleold' is non-empty
- update docs
2017-10-05 09:18:33 +02:00
nate
5f4d2edeee
'titleold': set UI title on exit #7191
...
closes #7129
ref #4063
2017-10-05 09:18:30 +02:00
James McCoy
235fda5f86
Stub ngettext when libintl isn't available
...
This should have been included in #6547 as part of vim-patch:7.4.2152.
Closes #7352
2017-10-03 14:54:50 -04:00
KillTheMule
41f624a85b
Deal with NOP, add actext to output
2017-10-02 21:49:50 +02:00
Ignas Anikevicius
2b133101cf
win: vim_FullName(): force backslashes #7287
...
- Replace obvious cases of '/' literal with PATHSEP. (There are still
some remaining cases that need closer inspection.)
- Fixup tests: ui/screen_basic
closes #7117
ref https://github.com/neovim/neovim/issues/2471#issuecomment-271193714
2017-10-02 00:48:30 +02:00
KillTheMule
4543fc1612
menu_get: prettyprint special chars
2017-10-01 11:47:31 +02:00
Matthieu Coudron
481e40cc8c
Remove duplicate ATTRENTRY_INIT
2017-09-30 11:44:50 +09:00
Matthieu Coudron
3a00648639
Changed prototypes to accept a boolean "rgb"
2017-09-30 11:43:26 +09:00
Matthieu Coudron
e3a2cca387
Increased test coverage for RGB and cterm
2017-09-30 11:43:26 +09:00
Matthieu Coudron
ba7277cfb4
Adds nvim_get_hl_by_name/by_id
...
...in order to retrieve highlights.
Added test/functional/api/highlight_spec.lua
HL_NORMAL is not really a good name, since it's more like an empty attribute than the normal's one.
If one pays attention, syn_cterm_attr2entry is never called with attr=0 because it's always special cased before.
I suggest in subsequent PRs we remove the ATTR_OFF and just insert an EMPTY ATTR/RESET_ATTR/UNINITIALIZED for id 0.
2017-09-30 11:43:26 +09:00
ZyX
e479f3b944
kvec: Add kv_drop() which is to be used like (void)kv_pop(kvec)
2017-09-29 01:21:22 +03:00
ckelsel
f97ca6b333
vim-patch:8.0.0155
...
Problem: When sorting zero elements a NULL pointer is passed to qsort(),
which ubsan warns for.
Solution: Don't call qsort() if there are no elements. (Dominique Pelle)
a216255a4f
2017-09-28 12:28:25 +08:00
James McCoy
f1242c2a26
oldtest: Run test_mksession_utf8 tests
2017-09-27 08:27:31 -04:00
ckelsel
65c97961ec
vim-patch:8.0.0132
...
Problem: Test fails because of using :finish.
Solution: Change to return.
4c8980b717
2017-09-27 20:07:09 +08:00
ckelsel
36f13ceb0a
vim-patch:8.0.0131
...
Problem: Not enough test coverage for syntax commands.
Solution: Add more tests. (Dominique Pelle)
73b484c4da
2017-09-27 20:05:39 +08:00
ckelsel
dde62900c8
Merge branch 'master' of https://github.com/neovim/neovim into vim-8.0.0101
...
fix Conflicts
2017-09-27 19:21:40 +08:00
James McCoy
542ed5f5d3
Merge pull request #7325 from jamessan/vim-8.0.0112
...
vim-patch:8.0.0112,8.0.0253,8.0.0258,8.0.1024,8.0.1025
2017-09-26 22:48:02 -04:00
James McCoy
e085a50c59
Merge pull request #7310 from ckelsel/vim-8.0.0330
...
vim-patch:8.0.0330
2017-09-26 16:56:19 -04:00