File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,13 @@ function! s:ast() abort
2828 let vimfile = ' autoload/vimlparser.vim'
2929 let astfile = ' go/vimlparser.ast.vim'
3030
31- let cache = {}
32- if filereadable (astfile)
33- " sandbox return js_decode(readfile(astfile)[0])
34- let cache = js_decode (readfile (astfile)[0 ])
35- " return deepcopy(cache)
36- " XXX: cache doesn't work.... why...
37- endif
38-
3931 let lines = readfile (vimfile)
4032 unlet lines [0 : index (lines , ' let s:FALSE = 0' )]
4133 unlet lines [index (lines , ' let s:RegexpParser = {}' ):-2 ]
4234 let r = s: StringReader .new (lines )
4335 let p = s: VimLParser .new ()
4436 let ast = p .parse (r )
45- echom ' (ast == cache) == ' . (ast == cache)
4637 return ast
47- " return cache
4838endfunction
4939
5040function ! s: numtoname (num)
You can’t perform that action at this time.
0 commit comments