diff options
author | ZyX <kp-pav@yandex.ru> | 2016-06-24 17:16:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-06-24 17:16:11 +0300 |
commit | 458a4d04447e57c198210fb8f743a261e13b9855 (patch) | |
tree | ec80df8e529341884fbeaea64c86fbbfaf87bc38 /src/clint.py | |
parent | 50f5bb8ade138a1a7a67838f01b7edb2f7396b92 (diff) | |
download | rneovim-458a4d04447e57c198210fb8f743a261e13b9855.tar.gz rneovim-458a4d04447e57c198210fb8f743a261e13b9855.tar.bz2 rneovim-458a4d04447e57c198210fb8f743a261e13b9855.zip |
*: Fix linter errors
Also adds one exception to linter rules:
typedef struct {
kvec_t(Object) stack;
} EncodedData;
is completely valid (from the style guide point of view) code.
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clint.py b/src/clint.py index 80e4c4ac39..efc5f18378 100755 --- a/src/clint.py +++ b/src/clint.py @@ -2515,7 +2515,8 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): 'after the hash') cast_line = re.sub(r'^# *define +\w+\([^)]*\)', '', line) - match = Search(r'\((?:const )?(?:struct )?[a-zA-Z_]\w*(?: *\*(?:const)?)*\)' + match = Search(r'(?<!\bkvec_t)' + r'\((?:const )?(?:struct )?[a-zA-Z_]\w*(?: *\*(?:const)?)*\)' r' +' r'-?(?:\*+|&)?(?:\w+|\+\+|--|\()', cast_line) if match and line[0] == ' ': |