diff options
author | ZyX <kp-pav@yandex.ru> | 2016-04-13 02:40:41 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-13 03:06:34 +0300 |
commit | 0cb2c39ec4b5649667619441b2ef3407e0bf9759 (patch) | |
tree | a5ce47fa46e9346ad3116d2369872fac19f47e85 /test/functional/eval/string_spec.lua | |
parent | f47a20a266f89be31e20f727de59708759795345 (diff) | |
download | rneovim-0cb2c39ec4b5649667619441b2ef3407e0bf9759.tar.gz rneovim-0cb2c39ec4b5649667619441b2ef3407e0bf9759.tar.bz2 rneovim-0cb2c39ec4b5649667619441b2ef3407e0bf9759.zip |
clint: Add diagnostics for things like `char* foo` or `(char*)`
Asterisk should be preceded by a space except the following cases:
1. `foo[*idx_ptr]`
2. `++*foo` (though I would prefer to write this as `++(*foo)`)
3. `(*foo)->bar`, `if (*p)`
4. `char **foo`
5. `/* comment */`
6. `!*p`
Note: `[^ (*/![]` is followed by `+` to make error position easier to find. It
is not needed to find location of the problem.
Diffstat (limited to 'test/functional/eval/string_spec.lua')
0 files changed, 0 insertions, 0 deletions