#NEWLINE# def next_word_start( view , pt ) : #NEWLINE# #INDENT# if is_at_punctuation ( view , pt ) : #NEWLINE# #INDENT# end = get_punctuation_region ( view , pt ) . b #NEWLINE# if ( view . substr ( end ) in ( ' ' , '\n' ) ) : #NEWLINE# #INDENT# end = view . find_by_class ( end , forward = True , classes = ANCHOR_NEXT_WORD_BOUNDARY ) #NEWLINE# return end #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if is_at_space ( view , pt ) : #NEWLINE# #INDENT# end = get_space_region ( view , pt ) . b #NEWLINE# if ( is_at_word ( view , end ) or is_at_punctuation ( view , end ) ) : #NEWLINE# #INDENT# end = view . find_by_class ( end , forward = True , classes = ( ( CLASS_WORD_END | CLASS_PUNCTUATION_END ) | CLASS_LINE_END ) ) #NEWLINE# return end #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return view . find_by_class ( pt , forward = True , classes = ANCHOR_NEXT_WORD_BOUNDARY )