From: Bram Moolenaar Date: Wed, 28 Jul 2010 10:52:27 +0000 (+0200) Subject: Minor runtime file updates. X-Git-Tag: v7.3~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59c0395e6b49e916fca339f63291c56151decc6b;p=vim Minor runtime file updates. --- diff --git a/runtime/indent/vb.vim b/runtime/indent/vb.vim index 85021bd7d..5f386f791 100644 --- a/runtime/indent/vb.vim +++ b/runtime/indent/vb.vim @@ -2,6 +2,7 @@ " Language: VisualBasic (ft=vb) / Basic (ft=basic) / SaxBasic (ft=vb) " Author: Johannes Zellner " Last Change: Fri, 18 Jun 2004 07:22:42 CEST +" Small update 2010 Jul 28 by Maxim Kim if exists("b:did_indent") finish @@ -63,7 +64,7 @@ fun! VbGetIndent(lnum) " end select let ind = ind - &sw endif - elseif this_line =~? '^\s*\<\(end\|else\|until\|loop\|next\|wend\)\>' + elseif this_line =~? '^\s*\<\(end\|else\|elseif\|until\|loop\|next\|wend\)\>' let ind = ind - &sw elseif this_line =~? '^\s*\<\(case\|default\)\>' if previous_line !~? '^\s*\' @@ -73,3 +74,5 @@ fun! VbGetIndent(lnum) return ind endfun + +" vim:sw=4 diff --git a/runtime/syntax/css.vim b/runtime/syntax/css.vim index a73836a92..c569213d0 100644 --- a/runtime/syntax/css.vim +++ b/runtime/syntax/css.vim @@ -2,7 +2,7 @@ " Language: Cascading Style Sheets " Maintainer: Claudio Fleiner " URL: http://www.fleiner.com/vim/syntax/css.vim -" Last Change: 2007 Nov 06 +" Last Change: 2010 Jul 28 " CSS2 by Nikolai Weibull " Full CSS2, HTML4 support by Yeti @@ -87,9 +87,9 @@ syn keyword cssCommonAttr contained auto none inherit syn keyword cssCommonAttr contained top bottom syn keyword cssCommonAttr contained medium normal -syn match cssFontProp contained "\\(-\(family\|style\|variant\|weight\|size\(-adjust\)\=\|stretch\)\>\)\=" +syn match cssFontProp contained "\" syn match cssFontAttr contained "\<\(sans-\)\=\" -syn match cssFontAttr contained "\\(-\(caps\|caption\)\>\)\=" +syn match cssFontAttr contained "\" syn match cssFontAttr contained "\" syn match cssFontAttr contained "\" syn match cssFontAttr contained "\" @@ -102,7 +102,7 @@ syn keyword cssFontAttr contained large smaller larger syn keyword cssFontAttr contained narrower wider syn keyword cssColorProp contained color -syn match cssColorProp contained "\" syn keyword cssColorAttr contained center scroll fixed syn match cssColorAttr contained "\" syn match cssColorAttr contained "\" diff --git a/runtime/syntax/sass.vim b/runtime/syntax/sass.vim index 082ae71bd..879ff87e8 100644 --- a/runtime/syntax/sass.vim +++ b/runtime/syntax/sass.vim @@ -2,7 +2,7 @@ " Language: Sass " Maintainer: Tim Pope " Filenames: *.sass -" Last Change: 2010 Jul 26 +" Last Change: 2010 Jul 28 if exists("b:current_syntax") finish @@ -17,8 +17,8 @@ syn cluster sassCssAttributes contains=css.*Attr,scssComment,cssValue.*,cssColor syn region sassDefinition matchgroup=cssBraces start="{" end="}" contains=TOP -syn match sassProperty "\%([{};]\s*\|^\)\@<=[[:alnum:]-]\+:" contains=css.*Prop skipwhite nextgroup=sassCssAttribute contained containedin=sassDefinition -syn match sassProperty "^\s*\zs\s\%([[:alnum:]-]\+:\|:[[:alnum:]-]\+\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute +syn match sassProperty "\%([{};]\s*\|^\)\@<=\%([[:alnum:]-]\|#{[^{}]*}\)\+:" contains=css.*Prop skipwhite nextgroup=sassCssAttribute contained containedin=sassDefinition +syn match sassProperty "^\s*\zs\s\%(\%([[:alnum:]-]\|#{[^{}]*}\)\+:\|:[[:alnum:]-]\+\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute syn match sassProperty "^\s*\zs\s\%(:\=[[:alnum:]-]\+\s*=\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute syn match sassCssAttribute +\%("\%([^"]\|\\"\)*"\|'\%([^']\|\\'\)*'\|[^{};]\)*+ contained contains=@sassCssAttributes,sassVariable,sassFunction syn match sassDefault "!default\>" contained @@ -34,7 +34,7 @@ syn match sassFunction "\<\%(unquote\|quote\)\>(\@=" contained syn match sassFunction "\<\%(percentage\|round\|ceil\|floor\|abs\)\>(\@=" contained syn match sassFunction "\<\%(type-of\|unit\|unitless\|comparable\)\>(\@=" contained -syn region sassInterpolation matchgroup=sassInterpolationDelimiter start="#{" end="}" contains=@sassCssAttributes,sassVariable,sassFunction containedin=cssStringQ,cssStringQQ +syn region sassInterpolation matchgroup=sassInterpolationDelimiter start="#{" end="}" contains=@sassCssAttributes,sassVariable,sassFunction containedin=cssStringQ,cssStringQQ,sassCssAttribute,sassProperty syn match sassMixinName "[[:alnum:]_-]\+" contained nextgroup=sassCssAttribute syn match sassMixin "^=" nextgroup=sassMixinName diff --git a/runtime/tutor/tutor b/runtime/tutor/tutor index 31ba71072..daf42b6bb 100644 --- a/runtime/tutor/tutor +++ b/runtime/tutor/tutor @@ -656,7 +656,7 @@ NOTE: If you were to exit Vim and start it again with vim TEST , the file 3. Press the : character. At the bottom of the screen :'<,'> will appear. 4. Type w TEST , where TEST is a filename that does not exist yet. Verify - that you see :'<,'>w TEST before you press Enter. + that you see :'<,'>w TEST before you press . 5. Vim will write the selected lines to the file TEST. Use :!dir or !ls to see it. Do not remove it yet! We will use it in the next lesson.