mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 23:22:39 +00:00
Do not detect macros like VIM_TRUE as boolean values
This commit is contained in:
2
clint.py
2
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,
|
||||
|
||||
Reference in New Issue
Block a user