#NEWLINE# def make_atomic( info , subpattern ) : #NEWLINE# #INDENT# group = info . new_group ( ) #NEWLINE# info . close_group ( group , hidden = True ) #NEWLINE# return Sequence ( [ LookAround ( Group ( info , info , subpattern ) , behind = False , positive = True ) , RefGroup ( info , group ) ] )