#NEWLINE# def parse( self , string ) : #NEWLINE# #INDENT# ' Parse vim script string and return the AST. ' #NEWLINE# lines = string . split ( '\n' ) #NEWLINE# reader = vimlparser . StringReader ( lines ) #NEWLINE# parser = vimlparser . VimLParser ( self . _enable_neovim ) #NEWLINE# ast = parser . parse ( reader ) #NEWLINE# ast [ 'pos' ] = { #NEWLINE# #INDENT# 'col' : 1 , #NEWLINE# 'i' : 0 , #NEWLINE# 'lnum' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# for plugin in self . plugins : #NEWLINE# #INDENT# plugin . process ( ast ) #NEWLINE# #UNINDENT# return string