1
0
mirror of https://github.com/gryf/python.vim.git synced 2025-12-17 11:30:22 +01:00

Version 1.9

Fixed bug in IM-Python menu where function and class names beginning with "_" were not included.
This commit is contained in:
Jon Franklin
2006-08-26 00:00:00 +00:00
committed by Able Scraper
parent 97ed3fccdb
commit 6dbc984278

View File

@@ -2,7 +2,7 @@
" FILE: python.vim " FILE: python.vim
" LAST MODIFICATION: 2006-08-18 07:30 " LAST MODIFICATION: 2006-08-18 07:30
" (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net> " (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net>
" Version: 1.8 " Version: 1.9
" USAGE: " USAGE:
" "
@@ -312,7 +312,7 @@ function! MenuBuilder()
let parentclass = "" let parentclass = ""
while line(".") < line("$") while line(".") < line("$")
" search for a class or function " search for a class or function
if match ( getline("."), '^\s*class\s\+[a-zA-Z].*:\|^\s*def\s\+[a-zA-Z].*:' ) != -1 if match ( getline("."), '^\s*class\s\+[_a-zA-Z].*:\|^\s*def\s\+[_a-zA-Z].*:' ) != -1
norm ^ norm ^
let linenum = line('.') let linenum = line('.')
let indentcol = col('.') let indentcol = col('.')