#NEWLINE# def test_ws( ) : #NEWLINE# #INDENT# '\n    ws consists of chars that will be skipped if skipws is enables.\n    By default it consists of space, tab and newline.\n    ' #NEWLINE# def grammar( ) : #NEWLINE# #INDENT# return ( 'one' , 'two' , 'three' ) #NEWLINE# #UNINDENT# parser = ParserPython ( grammar ) #NEWLINE# parser . parse ( 'one\n                  two   three' ) #NEWLINE# parser = ParserPython ( grammar , ws = ' ' ) #NEWLINE# with pytest . raises ( NoMatch ) : #NEWLINE# #INDENT# parser . parse ( 'one\n                  two   three' ) #NEWLINE# #UNINDENT# parser . parse ( 'one two  three' )