GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — vim-ruby/spec/vim/plugin/syntax_test.vim at master · vim-ruby/vim-ruby Expand file tree/ Copy pathsyntax_test.vimMore file actions 21 lines (18 loc) · 521 Bytes / Copy pathsyntax_test.vimFile metadata and controls21 lines (18 loc) · 521 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 let s:debug = 0 function! s:CursorHasGroup(group) abort return synIDattr(synID(line('.'), col('.'), 1), 'name') =~ a:group endfunction function! TestSyntax(pattern, group) abort let pattern = '\C' . a:pattern call cursor(1, 1) redraw let start_match = search(pattern, 'c') && s:CursorHasGroup(a:group) if s:debug redraw | sleep 500m endif let end_match = search(pattern, 'e') && s:CursorHasGroup(a:group) if s:debug redraw | sleep 500m endif return start_match && end_match endfunction |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |