aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-06 01:52:36 +0300
committerZyX <kp-pav@yandex.ru>2017-01-06 01:52:36 +0300
commita1cce83d3c7a0b3b9f63db837db521e0b4e6a31f (patch)
tree876d236c60f1f8cd2e5a68004e488236f0ec3cde /src/clint.py
parent10d9c6d813d51750e6f77b3ef58ac4d4fef08e86 (diff)
downloadrneovim-a1cce83d3c7a0b3b9f63db837db521e0b4e6a31f.tar.gz
rneovim-a1cce83d3c7a0b3b9f63db837db521e0b4e6a31f.tar.bz2
rneovim-a1cce83d3c7a0b3b9f63db837db521e0b4e6a31f.zip
clint: Add more exceptions to “space after a cast” rule
Python does not allow branching here, complaining that look-behind is not fixed-width.
Diffstat (limited to 'src/clint.py')
-rwxr-xr-xsrc/clint.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clint.py b/src/clint.py
index efc5f18378..0470f824fa 100755
--- a/src/clint.py
+++ b/src/clint.py
@@ -2516,6 +2516,10 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
cast_line = re.sub(r'^# *define +\w+\([^)]*\)', '', line)
match = Search(r'(?<!\bkvec_t)'
+ r'(?<!\bkvec_withinit_t)'
+ r'(?<!\bklist_t)'
+ r'(?<!\bkliter_t)'
+ r'(?<!\bkhash_t)'
r'\((?:const )?(?:struct )?[a-zA-Z_]\w*(?: *\*(?:const)?)*\)'
r' +'
r'-?(?:\*+|&)?(?:\w+|\+\+|--|\()', cast_line)