GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix bug · chxuan/cpp-mode@b71ba21

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • autoload/cppmode
    • gen_fun.vim
    • gen_var.vim
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎autoload/cppmode/gen_fun.vim‎

Copy file name to clipboardExpand all lines: autoload/cppmode/gen_fun.vim
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ endfunction
5151

5252
" 获得类名所在行号
5353
function! s:get_class_name_row_num()
54-
return search('^\s*\<struct\>\|\<class\>\s\+.\+\n{', 'bnz')
54+
return search('^\<struct\>\|\<class\>\s\+.\+\n{', 'bnz')
5555
endfunction
5656

5757
" 获得函数所在类名
Collapse file

‎autoload/cppmode/gen_var.vim‎

Copy file name to clipboardExpand all lines: autoload/cppmode/gen_var.vim
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endfunction
3131

3232
" 获得类名所在行号
3333
function! s:get_row_num_of_class_name()
34-
return search('^\s*\<struct\>\|\<class\>\s\+.\+\n{', 'bnz')
34+
return search('^\<struct\>\|\<class\>\s\+.\+\n{', 'bnz')
3535
endfunction
3636

3737
" 获得函数所在类名
@@ -47,7 +47,7 @@ endfunction
4747

4848
" 获得变量骨架代码
4949
function! s:get_var_skeleton()
50-
let ret = matchlist(s:var_declaration, '\s*static\s\+\(\w\+\)\s\+\(\w\+\);')
50+
let ret = matchlist(s:var_declaration, '\s*static\s\+\(.\+\)\s\+\(\w\+\);')
5151
return ret[1] . " " . s:class_name . "::" . ret[2] . ";"
5252
endfunction
5353

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.