aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorZyX <kp-pav@ya.ru>2014-05-02 16:06:30 +0400
committerJustin M. Keyes <justinkz@gmail.com>2014-05-03 08:44:04 -0400
commit37935130f9c967f58de9900f7d86042116db9fd5 (patch)
tree0eeb84805df0f63d233b81b6ea821d02afccae4f /clint.py
parent8a729897f433f2e11450f48d57dc38ad7ef0c73a (diff)
downloadrneovim-37935130f9c967f58de9900f7d86042116db9fd5.tar.gz
rneovim-37935130f9c967f58de9900f7d86042116db9fd5.tar.bz2
rneovim-37935130f9c967f58de9900f7d86042116db9fd5.zip
Do not detect macros like VIM_TRUE as boolean values
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clint.py b/clint.py
index 140b20cad7..b5321127d7 100755
--- a/clint.py
+++ b/clint.py
@@ -2802,7 +2802,7 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
"('k' followed by CamelCase) compile-time constant for the size.")
# Detect TRUE and FALSE.
- match = Search(r'(TRUE|FALSE)', line)
+ match = Search(r'\b(TRUE|FALSE)\b', line)
if match:
token = match.group(1)
error(filename, linenum, 'readability/bool', 4,