summaryrefslogtreecommitdiff
path: root/runtime/syntax/yacc.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-23 21:32:16 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-23 21:32:16 +0000
commitdf1bdc92c289d4531f82418f448466c99ca4bb78 (patch)
treec8ab380c2ffaa17450ffeb5a4ed51c404a38fe15 /runtime/syntax/yacc.vim
parent80a94a582cd2d5307d1e65ec06fe0fb05f60d7c9 (diff)
downloadvim-df1bdc92c289d4531f82418f448466c99ca4bb78.zip
updated for version 7.0205
Diffstat (limited to 'runtime/syntax/yacc.vim')
-rw-r--r--runtime/syntax/yacc.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/syntax/yacc.vim b/runtime/syntax/yacc.vim
index 147728b7e..aef02b53c 100644
--- a/runtime/syntax/yacc.vim
+++ b/runtime/syntax/yacc.vim
@@ -1,12 +1,12 @@
" Vim syntax file
" Language: Yacc
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
-" Last Change: Sep 06, 2005
-" Version: 3
+" Last Change: Feb 22, 2006
+" Version: 4
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
"
" Option:
-" yacc_uses_cpp : if this variable exists, then C++ is loaded rather than C
+" g:yacc_uses_cpp : if this variable exists, then C++ is loaded rather than C
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -18,12 +18,12 @@ endif
" Read the C syntax to start with
if version >= 600
- if exists("yacc_uses_cpp")
+ if exists("g:yacc_uses_cpp")
runtime! syntax/cpp.vim
else
runtime! syntax/c.vim
endif
-elseif exists("yacc_uses_cpp")
+elseif exists("g:yacc_uses_cpp")
so <sfile>:p:h/cpp.vim
else
so <sfile>:p:h/c.vim
@@ -47,7 +47,7 @@ syn region yaccUnion contained matchgroup=yaccCurly start="{" matchgroup=yaccCur
syn region yaccUnionCurly contained matchgroup=yaccCurly start="{" matchgroup=yaccCurly end="}" contains=@yaccUnionGroup
syn match yaccBrkt contained "[<>]"
syn match yaccType "<[a-zA-Z_][a-zA-Z0-9_]*>" contains=yaccBrkt
-syn match yaccDefinition "^[A-Za-z][A-Za-z0-9_]*[ \t]*:"
+syn match yaccDefinition "^[A-Za-z][A-Za-z0-9_]*\_s*:"
" special Yacc separators
syn match yaccSectionSep "^[ \t]*%%"