aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
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,