mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
remove C++ stuff from CheckSpacingForFunctionCall
This commit is contained in:
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
|
||||
# they'll never need to wrap.
|
||||
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
|
||||
# Ignore pointers/references to functions.
|
||||
not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and
|
||||
|
Loading…
Reference in New Issue
Block a user