Vim-fork focused on extensibility and usability
Go to file
ZyX 244967bff9 clint: Add rules that forbids spaces after a cast operator
https://neovim.io/develop/style-guide.xml#Horizontal_Whitespace

Note that this errors out for e.g.

    if (has_mbyte) mb_copy_char((const char_u **)(&f), &t); \

(found in macros.h:151) or

    #define ECMD_SET_HELP   0x02    /* set b_help flag of (new) buffer before

(found in ex_cmds.h:11) (note `(new) buffer`). I left this as-is because these 
pieces of code are already caught by another rule (braces near if and `/*`-style 
comments). Other false positives I found were:

1. `FUNC_ATTR_NONNULL_ARG(1) FUNC_ATTR_WARN_UNUSED_RESULT`: rejected by 
   requiring type name to start with `[a-zA-Z_]` (this makes `1` not be 
   incorrectly recognized as a type).
2. `#define FOO(var) (var)`: rejected by creating `cast_line`.
3. `(expr) * (expr)`: rejected by constructing regexp so that unary operators 
   require no spaces after them.
4. `int f(void) FUNC_ATTR_PURE`: rejected by requiring line to start with 
   a space.
5. `"." STR(NVIM_VERSION_PATCH) NVIM_VERSION_PRERELEASE`: not rejected, such 
   thing should be rare and it would be easy to get rid of the false positive by 
   e.g. breaking line.

Struct literals like `(MyStruct) { 4, 2 }` are not checked:

1. I am not sure whether they are under this rule at all (this is not a cast).
2. It would be hard to get rid of false positives (like the example with `if` 
   above, but now for *valid* `if() {}`s).
2016-06-11 00:08:59 +03:00
.ci ci: test: Replace hard-coded commands with Makefile's targets 2016-05-17 00:04:40 -04:00
cmake cmake: Allow building without Luajit 2016-05-19 17:55:19 +01:00
config do_source: less fuss about fopen_noinh_readbin 2016-05-28 12:48:32 -04:00
contrib Improve YCM contrib: Fix db path 2016-01-17 20:50:10 -05:00
man 'termguicolors' #4690 2016-05-10 06:04:26 -04:00
runtime Merge #4813 'runtime: clipboard: start daemons in /'. 2016-06-10 03:05:28 -04:00
scripts msgpack-gen: Fix for Lua 5.1. (#4857) 2016-06-01 19:14:09 -04:00
src clint: Add rules that forbids spaces after a cast operator 2016-06-11 00:08:59 +03:00
test Merge #4813 'runtime: clipboard: start daemons in /'. 2016-06-10 03:05:28 -04:00
third-party cmdline: Redraw the cmdline after processing events 2016-05-24 22:11:37 +02:00
unicode Update unicode files 2015-07-26 22:59:46 +03:00
.editorconfig add .editorconfig 2016-02-23 18:03:27 +09:00
.gitignore .gitignore: cleanup 2016-06-06 11:02:15 -04:00
.travis.yml travis: remove LLVM apt PPA; fallback to clang 3.4 2016-05-31 19:03:00 -04:00
appveyor.yml Windows: Crank to MSVC 2015 on AppVeyor. #3254 2015-08-27 23:21:04 -04:00
BACKERS.md Update backer URL 2015-11-11 19:50:33 -08:00
CMakeLists.txt CMake: Search all possibly usable Lua executables. (#4858) 2016-06-03 12:21:29 -04:00
CONTRIBUTING.md doc: precision, concision, elision 2016-06-03 17:11:10 -04:00
ISSUE_TEMPLATE.md doc: precision, concision, elision 2016-06-03 17:11:10 -04:00
LICENSE LICENSE: add LuaJIT notice. #899 2014-06-30 13:59:56 -04:00
Makefile build: define helptags target which always runs. 2016-06-06 11:05:09 -04:00
README.md doc: precision, concision, elision 2016-06-03 17:11:10 -04:00

Neovim

Website | Community | Wiki | Documentation | Mailing List | Twitter | Bountysource

Travis Build Status AppVeyor Build status Pull requests waiting for review Coverage Status Coverity Scan Build Clang Scan Build Join the chat at https://gitter.im/neovim/neovim

Neovim is a project that seeks to aggressively refactor Vim in order to:

  • Simplify maintenance and encourage contributions
  • Split the work between multiple developers
  • Enable the implementation of new/modern user interfaces without any modifications to the core source
  • Improve extensibility with a new plugin architecture

For lots more details, see the wiki!

What's been done so far

See the progress page for a comprehensive list.

Throughput Graph

What's being worked on now

  • Port all IO to libuv
  • Convert legacy tests to Lua tests
  • VimL => Lua translator

How do I get it?

There is a formula for OSX/homebrew, a PKGBUILD for Arch Linux, RPM, deb, and more. See the wiki!

License

Neovim is licensed under the terms of the Apache 2.0 license, except for parts that were contributed under the Vim license.

  • Contributions committed before b17d96 remain under the Vim license.

  • Contributions committed after b17d96 are licensed under Apache 2.0 unless those contributions were copied from Vim (identified in the commit logs by the vim-patch token).

See LICENSE for details.

Vim is Charityware.  You can use and copy it as much as you like, but you are
encouraged to make a donation for needy children in Uganda.  Please see the
kcc section of the vim docs or visit the ICCF web site, available at these URLs:

        http://iccf-holland.org/
        http://www.vim.org/iccf/
        http://www.iccf.nl/

You can also sponsor the development of Vim.  Vim sponsors can vote for
features.  The money goes to Uganda anyway.