Skip to content

Commit 24e7ac4

Browse files
committed
Issue#1537: Corrected bugs.
1 parent 0a70381 commit 24e7ac4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vsg/tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def token_between_quotes_is_a_single_character(iQuote, lChars):
240240

241241

242242
def token_is_not_a_parenthesis(iQuote, lChars):
243-
return lChars[iQuote + 1] == "("
243+
return lChars[iQuote + 1] != "("
244244

245245

246246
def filter_character_literal_candidates(lLiterals):

vsg/vhdlFile/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def count_token_types_in_list_of_tokens(oType, lTokens):
703703

704704

705705
def does_token_type_exist_in_list_of_tokens(oType, lTokens):
706-
return oType in lTokens
706+
return count_token_types_in_list_of_tokens(oType, lTokens) != 0
707707

708708

709709
def get_toi_parameters(oToi):

0 commit comments

Comments
 (0)