mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
remove C++ stuff from CheckSpacingForFunctionCall
This commit is contained in:

committed by
Thiago de Arruda

parent
95659707a8
commit
23a41ebf8f
2
clint.py
2
clint.py
@@ -2248,7 +2248,7 @@ def CheckSpacingForFunctionCall(filename, line, linenum, error):
|
|||||||
# Note that we assume the contents of [] to be short enough that
|
# Note that we assume the contents of [] to be short enough that
|
||||||
# they'll never need to wrap.
|
# they'll never need to wrap.
|
||||||
if ( # Ignore control structures.
|
if ( # Ignore control structures.
|
||||||
not Search(r'\b(if|for|while|switch|return|new|delete|catch|sizeof)\b',
|
not Search(r'\b(if|for|while|switch|return|sizeof)\b',
|
||||||
fncall) and
|
fncall) and
|
||||||
# Ignore pointers/references to functions.
|
# Ignore pointers/references to functions.
|
||||||
not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and
|
not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and
|
||||||
|
Reference in New Issue
Block a user