Jan Edmund Lazo
486234ab3d
vim-patch:8.1.0937: invalid memory access in search pattern
...
Problem: Invalid memory access in search pattern. (Kuang-che Wu)
Solution: Check for incomplete collation element. (Dominique Pelle,
closes vim/vim#3985 )
f1b57ab2ab
2019-02-17 19:37:44 -05:00
Jan Edmund Lazo
279ecaff00
vim-patch:8.1.0934: invalid memory access in search pattern
...
Problem: Invalid memory access in search pattern. (Kuang-che Wu)
Solution: Check for incomplete equivalence class. (closes vim/vim#3970 )
985079c514
2019-02-17 19:35:41 -05:00
Justin M. Keyes
ce6a5fb94b
PVS/V560: expression is always true
...
This macro serves as a sanity-check / documentation.
2019-01-18 02:43:38 +01:00
Jan Edmund Lazo
772f4ce9f8
vim-patch:8.1.0677: look-behind match may use the wrong line number
...
Problem: Look-behind match may use the wrong line number. (Dominique Pelle)
Solution: Use the line number in regsave instead of the one in behind_pos,
we may be looking at the previous line. (closes vim/vim#3749 )
866f355814
2019-01-05 22:43:46 -05:00
Justin M. Keyes
5a752c97d5
vim-patch:8.1.0098: segfault when pattern with \z() is very slow ( #9283 )
...
Problem: Segfault when pattern with \z() is very slow.
Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be
able to test this. Fix that 'searchhl' resets called_emsg.
bcf9442307
closes #8788
2018-11-29 01:51:26 +01:00
Jan Edmund Lazo
01b2fa53f4
lint
2018-09-21 00:05:06 -04:00
Jan Edmund Lazo
300a7a4cf4
replace fallthrough comment with macro
...
Follow-up of vim-patch:8.0.1215
2018-09-21 00:05:06 -04:00
Jan Edmund Lazo
6a329b0548
vim-patch:8.0.1215: newer gcc warns for implicit fallthrough
...
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
2f40d129bf
2018-09-20 06:59:04 -04:00
ZviRackover
329cfc3303
lint: clean-up after parent commits
2018-09-09 10:45:50 +03:00
ZviRackover
ac13e65ae0
Remove has_mbytes local to lines changed in parent commit
2018-09-09 10:45:50 +03:00
ZviRackover
cbdbc4f63d
Refactor: Remove occurences of mb_char2bytes
2018-09-09 10:45:50 +03:00
ZviRackover
d110c6d790
lint: cleanup after parent commits
2018-08-16 07:39:48 +03:00
ZviRackover
2bddc4ca54
Remove occurences of mb_head_off
2018-08-15 22:02:33 +03:00
Jan Edmund Lazo
d6a25f89b8
regexp: drop has_mbyte check in regmatch()
...
has_mbyte is always true in nvim.
2018-08-11 17:45:18 -04:00
Jan Edmund Lazo
cb708d203b
vim-patch:8.0.1517: invalid memory acces with pattern using look-behind match
...
Problem: Invalid memory acces with pattern using look-behind match.
(Dominique Pelle)
Solution: Get a pointer to the right line.
bc197195b0
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
f7f65f5a82
vim-patch:8.0.1254: undefined left shift in gethexchrs()
...
Problem: Undefined left shift in gethexchrs(). (geeknik)
Solution: Use unsigned long. (idea by Christian Brabandt, closes vim/vim#2255 )
4c22a91d20
2018-08-11 14:32:59 -04:00
ZviRackover
5cecd7a93a
style: fixing minor issues noted in code review.
2018-08-06 22:27:10 +03:00
ZviRackover
071aab5148
Remove some occrrences of enc_utf8 and has_mbyte
...
Removing uses and related dead code in the locallity of changes of
the two parent commits.
2018-08-06 20:48:07 +03:00
ZviRackover
cd3b2e4b6b
lint: clean-up after parent commit
2018-08-06 20:48:07 +03:00
ZviRackover
10b6afd652
Remove all occurences of the mb_ptr2char macro
...
First step towards implemening issue #7401 .
The same can be done for all deprecated mb_ functions in follow-up
patches.
2018-08-06 20:48:07 +03:00
Jan Edmund Lazo
3c7ea8d619
vim-patch:8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
91acfffc1e
2018-06-12 02:00:50 -04:00
KunMing Xie
7cc9d2b2b2
vim-patch:8.0.0520: using a function pointer while the function is known ( #8513 )
...
Problem: Using a function pointer instead of the actual function, which we
know.
Solution: Change mb_ functions to utf_ functions when already checked for
Unicode. (Dominique Pelle, closes vim/vim#1582 )
ace95989ed
2018-06-10 12:31:51 +02:00
Jan Edmund Lazo
2ab7165214
lint
2018-06-04 17:51:15 -04:00
Jan Edmund Lazo
21aa4bc428
vim-patch:8.0.0623: error for invalid regexp is not very informative
...
Problem: The message "Invalid range" is used for multiple errors.
Solution: Add two more specific error messages. (Itchyny, Ken Hamada)
966e58e413
2018-06-04 08:44:19 -04:00
KunMing Xie
49a497a67c
vim-patch:8.0.0519: character classes not well tested ( #8460 )
...
Problem: Character classes are not well tested. They can differ between
platforms.
Solution: Add tests. In the documentation make clear which classes depend
on what library function. Only use :cntrl: and :graph: for ASCII.
(Kazunobu Kuriyama, Dominique Pelle, closes vim/vim#1560 )
Update the documentation.
0c078fc7db
2018-06-01 19:57:22 +02:00
ZyX
9ea1752d60
*: Provide list length when allocating lists
2018-01-14 01:33:16 +03:00
ZyX
d2c01d529f
regexp: Fix linter errors
2017-12-23 15:47:04 +03:00
ZyX
7f3b9a4acc
Merge branch 'master' into hide-container-impl
2017-12-16 14:27:41 +03:00
James McCoy
dcb2780b83
lint
2017-12-15 15:57:38 -05:00
Michael Schupikov
d5bce42b52
vim-patch:8.0.0074
...
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
95f096030e
Signed-off-by: Michael Schupikov <michael@schupikov.de >
2017-12-15 15:50:58 -05:00
ZyX
d46e37cb4c
*: Finish hiding list implementation
2017-12-11 10:12:59 +03:00
ZyX
ac4bbf55f6
*: Hide list implementation in other files as well
2017-12-10 22:04:43 +03:00
James McCoy
094bc39d01
Move definition of cstrchr above the functions which call it
...
Functions with FUNC_ATTR_ALWAYS_INLINE need to be defined before they
are called to work around bugs with some compiler versions. When the
body is after the use of the function, compilation will fail with
/home/niko/build/neovim/src/nvim/regexp.c: In function 'regmatch':
/home/niko/build/neovim/build/src/nvim/auto/regexp.c.generated.h:77: sorry, unimplemented: inlining failed in call to 'cstrchr': function body not available
/home/niko/build/neovim/src/nvim/regexp.c:4193: sorry, unimplemented: called from here
2017-09-23 07:42:21 -04:00
Jurica Bradaric
fe0bcc0800
vim-patch:8.0.0020
...
Problem: The regexp engines are not reentrant.
Solution: Add regexec_T and save/restore the state when needed.
6100d02aab
2017-07-29 16:27:11 -04:00
ZyX
f81d1ce003
regexp: Silence V595: potential null dereference
...
The code uses 2-iteration loop antipattern: retval is NULL on first iteration,
not NULL on second, yet this is still a false positive.
2017-07-04 18:37:01 +03:00
Justin M. Keyes
a9605bb4af
Merge #6460 from ZyX-I/1476-changes
...
Refactor functions which find character in a string
2017-05-08 13:45:14 +02:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
ZyX
30561afe41
regexp: Silence octal constant warning
2017-04-16 21:43:26 +03:00
ZyX
b7118a008a
regexp: Remove another has_mbyte/…-checking stuff
2017-04-16 21:43:26 +03:00
ZyX
69ebfb8d8e
regexp: Fix warning about octal constant
2017-04-16 21:43:26 +03:00
ZyX
22fb9d8d25
Merge branch 'master' into 1476-changes
2017-04-10 19:12:56 +03:00
Björn Linse
c1cf033981
lint: fix clint errors around mb_tolower calls
2017-04-10 12:02:26 +02:00
Björn Linse
db9ef6263e
mbyte: replace vim_tolower with mb_tolower handling locale correctly
2017-04-10 12:01:40 +02:00
ZyX
acc52a953b
regexp: Update comment in cstrchr()
2017-04-08 02:55:51 +03:00
ZyX
caeff6e1af
regexp: Do not use locale-dependent functions in cstrchr
2017-04-07 23:18:36 +03:00
ZyX
ac1cb1c72f
regexp: Refactor cstrchr
...
Ref #1476
2017-04-07 23:15:56 +03:00
ZyX
171baaee93
strings: Remove vim_strbyte
...
Ref #1476
2017-04-07 23:15:53 +03:00
ZyX
c8e63a8db8
eval: Move remaining get_tv_string* functions to eval/typval.c
2017-03-29 10:08:05 +03:00
ZyX
fb146e80aa
eval: Split eval.c into smaller files
2017-03-29 10:05:06 +03:00
Michael Ennen
ef8701610b
Allow lambdas to be used with jobs, timers and dictwatchers.
2017-02-14 17:38:19 -07:00