Skip to content

Commit

Permalink
Merge pull request #4315 from guy-maurel/NewIsParenOpen
Browse files Browse the repository at this point in the history
update and reorganize
  • Loading branch information
gmaurel committed Jun 4, 2024
2 parents 63016a5 + 0c864c9 commit 24513ff
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1712,22 +1712,24 @@ inline bool Chunk::IsBraceClose() const
inline bool Chunk::IsParenOpen() const
{
return( Is(CT_PAREN_OPEN)
|| Is(CT_SPAREN_OPEN)
|| Is(CT_PPAREN_OPEN)
|| Is(CT_TPAREN_OPEN)
|| Is(CT_FPAREN_OPEN)
|| Is(CT_LPAREN_OPEN));
|| Is(CT_LPAREN_OPEN)
|| Is(CT_PPAREN_OPEN)
|| Is(CT_RPAREN_OPEN)
|| Is(CT_SPAREN_OPEN)
|| Is(CT_TPAREN_OPEN));
}


inline bool Chunk::IsParenClose() const
{
return( Is(CT_PAREN_CLOSE)
|| Is(CT_SPAREN_CLOSE)
|| Is(CT_PPAREN_CLOSE)
|| Is(CT_TPAREN_CLOSE)
|| Is(CT_FPAREN_CLOSE)
|| Is(CT_LPAREN_CLOSE));
|| Is(CT_LPAREN_CLOSE)
|| Is(CT_PPAREN_CLOSE)
|| Is(CT_RPAREN_CLOSE)
|| Is(CT_SPAREN_CLOSE)
|| Is(CT_TPAREN_CLOSE));
}


Expand Down

0 comments on commit 24513ff

Please sign in to comment.