mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
eval: Split eval.c into smaller files
This commit is contained in:
@@ -2268,11 +2268,14 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
|
||||
# //!< Header comment
|
||||
# or they begin with multiple slashes followed by a space:
|
||||
# //////// Header comment
|
||||
# or they are Vim {{{ fold markers
|
||||
match = (Search(r'[=/-]{4,}\s*$', line[commentend:]) or
|
||||
Search(r'^/$', line[commentend:]) or
|
||||
Search(r'^!< ', line[commentend:]) or
|
||||
Search(r'^/< ', line[commentend:]) or
|
||||
Search(r'^/+ ', line[commentend:]))
|
||||
Search(r'^/+ ', line[commentend:]) or
|
||||
Search(r'^(?:\{{3}|\}{3})\d*(?: |$)',
|
||||
line[commentend:]))
|
||||
if not match:
|
||||
error(filename, linenum, 'whitespace/comments', 4,
|
||||
'Should have a space between // and comment')
|
||||
@@ -3575,7 +3578,7 @@ def main():
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
# vim: ts=4 sts=4 sw=4
|
||||
# vim: ts=4 sts=4 sw=4 foldmarker=▶,▲
|
||||
|
||||
# Ignore "too complex" warnings when using pymode.
|
||||
# pylama:ignore=C901
|
||||
|
Reference in New Issue
Block a user