mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Do not detect macros like VIM_TRUE as boolean values
This commit is contained in:
parent
8a729897f4
commit
37935130f9
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.")
|
"('k' followed by CamelCase) compile-time constant for the size.")
|
||||||
|
|
||||||
# Detect TRUE and FALSE.
|
# Detect TRUE and FALSE.
|
||||||
match = Search(r'(TRUE|FALSE)', line)
|
match = Search(r'\b(TRUE|FALSE)\b', line)
|
||||||
if match:
|
if match:
|
||||||
token = match.group(1)
|
token = match.group(1)
|
||||||
error(filename, linenum, 'readability/bool', 4,
|
error(filename, linenum, 'readability/bool', 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user