Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv11890
Modified Files:
Tag: b-newimaps
texrc
Log Message:
. modify TexLet to also accept things like
TexLet g:Foo = "foo"
Previously, it would quote the value with single quotes, so g:Foo would
get a value of '"foo"'.
Index: texrc
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v
retrieving revision 1.15.2.2
retrieving revision 1.15.2.3
diff -C2 -d -r1.15.2.2 -r1.15.2.3
*** texrc 19 Dec 2002 12:19:00 -0000 1.15.2.2
--- texrc 22 Dec 2002 02:36:33 -0000 1.15.2.3
***************
*** 4,8 ****
" Author: Srinath Avadhanula
" Created: Mon Apr 01 11:00 AM 2002 PST
! " Last Change: Thu Dec 19 04:00 AM 2002 PST
"
" Description: This file contains resource configuration information for the
--- 4,8 ----
" Author: Srinath Avadhanula
" Created: Mon Apr 01 11:00 AM 2002 PST
! " Last Change: Sat Dec 21 06:00 PM 2002 PST
"
" Description: This file contains resource configuration information for the
***************
*** 43,46 ****
--- 43,47 ----
" TexLet g:varname = '1'
" TexLet g:varname = 'foo bar'
+ " TexLet g:varname = "foo\nbar"
" TexLet g:varname = foo bar
function! <SID>SafeLet(arg)
***************
*** 49,53 ****
let value = substitute(value, '\s*$', '', '')
if !exists(name)
! if value =~ "^'"
exec "let ".name." = ".value
else
--- 50,54 ----
let value = substitute(value, '\s*$', '', '')
if !exists(name)
! if value =~ "^'\\|^\""
exec "let ".name." = ".value
else
|