Skip to content

Commit

Permalink
Close 42School#259
Browse files Browse the repository at this point in the history
  • Loading branch information
N01ch committed Mar 25, 2022
1 parent 27a7dfd commit ea8d355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions norminette/rules/check_preprocessor_define.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def run(self, context):
context.new_error("TAB_INSTEAD_SPC", tkn)
i += 1
continue
elif tkn.type == "IDENTIFIER" and len(identifiers) == 0:
if tkn.value.isupper() is False:
elif (tkn.type == "IDENTIFIER" or tkn.type == "NULL") and len(identifiers) == 0:
if tkn.type is not "NULL" and tkn.value.isupper() is False:
context.new_error("MACRO_NAME_CAPITAL", tkn)
identifiers.append(tkn)
tmp = i
Expand Down

0 comments on commit ea8d355

Please sign in to comment.