diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-21 22:12:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-21 22:12:41 +0000 |
commit | 57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (patch) | |
tree | 35b6845dc38717148718ac5cf70553b8c2cb96d8 /runtime/syntax | |
parent | fc1421eb53b17aa58b01a9c07ba2007eb4a1aa4f (diff) |
updated for version 7.0e05v7.0e05
Diffstat (limited to 'runtime/syntax')
59 files changed, 287 insertions, 181 deletions
diff --git a/runtime/syntax/a2ps.vim b/runtime/syntax/a2ps.vim index a5594439de..2a87d62f90 100644 --- a/runtime/syntax/a2ps.vim +++ b/runtime/syntax/a2ps.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: a2ps(1) configuration file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-06-30 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/alsaconf.vim b/runtime/syntax/alsaconf.vim index f2bda1894b..8fd51f0ac4 100644 --- a/runtime/syntax/alsaconf.vim +++ b/runtime/syntax/alsaconf.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: alsaconf(8) configuration file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/arch.vim b/runtime/syntax/arch.vim index b9789d2603..1e7856d2c8 100644 --- a/runtime/syntax/arch.vim +++ b/runtime/syntax/arch.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: GNU Arch inventory file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/bdf.vim b/runtime/syntax/bdf.vim index e79a6487b7..d0c73eb601 100644 --- a/runtime/syntax/bdf.vim +++ b/runtime/syntax/bdf.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: BDF font definition -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-06-27 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/calendar.vim b/runtime/syntax/calendar.vim index c47ef32e00..588b41a4b8 100644 --- a/runtime/syntax/calendar.vim +++ b/runtime/syntax/calendar.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: calendar(1) input file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/chordpro.vim b/runtime/syntax/chordpro.vim new file mode 100644 index 0000000000..a251a6945f --- /dev/null +++ b/runtime/syntax/chordpro.vim @@ -0,0 +1,67 @@ +" Vim syntax file +" Language: ChordPro (v. 3.6.2) +" Maintainer: Niels Bo Andersen <niels@niboan.dk> +" Last Change: 2006 Apr 20 +" Remark: Requires VIM version 6.00 or greater + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&vim + +setlocal iskeyword+=- + +syn case ignore + +syn keyword chordproDirective contained + \ start_of_chorus soc end_of_chorus eoc new_song ns no_grid ng grid g + \ new_page np new_physical_page npp start_of_tab sot end_of_tab eot + \ column_break colb + +syn keyword chordproDirWithOpt contained + \ comment c comment_italic ci comment_box cb title t subtitle st define + \ textfont textsize chordfont chordsize columns col + +syn keyword chordproDefineKeyword contained base-fret frets + +syn match chordproDirMatch /{\w*}/ contains=chordproDirective contained transparent +syn match chordproDirOptMatch /{\w*:/ contains=chordproDirWithOpt contained transparent + +" Workaround for a bug in VIM 6, which causes incorrect coloring of the first { +if version < 700 + syn region chordproOptions start=/{\w*:/ end=/}/ contains=chordproDirOptMatch contained transparent + syn region chordproOptions start=/{define:/ end=/}/ contains=chordproDirOptMatch, chordproDefineKeyword contained transparent +else + syn region chordproOptions start=/{\w*:/hs=e+1 end=/}/he=s-1 contains=chordproDirOptMatch contained + syn region chordproOptions start=/{define:/hs=e+1 end=/}/he=s-1 contains=chordproDirOptMatch, chordproDefineKeyword contained +endif + +syn region chordproTag start=/{/ end=/}/ contains=chordproDirMatch,chordproOptions oneline + +syn region chordproChord matchgroup=chordproBracket start=/\[/ end=/]/ oneline + +syn region chordproTab start=/{start_of_tab}\|{sot}/hs=e+1 end=/{end_of_tab}\|{eot}/he=s-1 contains=chordproTag,chordproComment keepend + +syn region chordproChorus start=/{start_of_chorus}\|{soc}/hs=e+1 end=/{end_of_chorus}\|{eoc}/he=s-1 contains=chordproTag,chordproChord,chordproComment keepend + +syn match chordproComment /^#.*/ + +" Define the default highlighting. +hi def link chordproDirective Statement +hi def link chordproDirWithOpt Statement +hi def link chordproOptions Special +hi def link chordproChord Type +hi def link chordproTag Constant +hi def link chordproTab PreProc +hi def link chordproComment Comment +hi def link chordproBracket Constant +hi def link chordproDefineKeyword Type +hi def chordproChorus term=bold cterm=bold gui=bold + +let b:current_syntax = "chordpro" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/syntax/cmake.vim b/runtime/syntax/cmake.vim index 8dfe3d713e..302417e5ff 100644 --- a/runtime/syntax/cmake.vim +++ b/runtime/syntax/cmake.vim @@ -49,7 +49,7 @@ syn region cmakeArguments start=/\s*(/ end=/)/ syn keyword cmakeDeprecated ABSTRACT_FILES BUILD_NAME SOURCE_FILES SOURCE_FILES_REMOVE VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WRAP_EXCLUDE_FILES \ nextgroup=cmakeArgument syn keyword cmakeStatement - \ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDIF ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE + \ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDIF ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE ENDMACRO \ nextgroup=cmakeArgumnts "syn match cmakeMacro /^\s*[A-Z_]\+/ nextgroup=cmakeArgumnts diff --git a/runtime/syntax/context.vim b/runtime/syntax/context.vim index 1b3d2446fb..93b14b194f 100644 --- a/runtime/syntax/context.vim +++ b/runtime/syntax/context.vim @@ -1,30 +1,24 @@ " Vim syntax file " Language: ConTeXt typesetting engine -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish endif +runtime! syntax/plaintex.vim + let s:cpo_save = &cpo set cpo&vim -syn keyword contextTodo TODO FIXME XXX NOTE - -syn region contextComment display oneline start='%' end='$' - \ contains=contextTodo -syn region contextComment display oneline start='^\s*%[CDM]' end='$' - \ contains=ALL - -syn match contextStatement display '\\[a-zA-Z@]\+' contains=@NoSpell +if !exists('g:context_include') + let g:context_include = ['mp', 'javascript', 'xml'] +endif syn match contextBlockDelim display '\\\%(start\|stop\)\a\+' \ contains=@NoSpell -syn match contextDelimiter '[][{}]' - -syn match contextEscaped display '\\\_[\{}|&%$ ]' syn region contextEscaped display matchgroup=contextPreProc \ start='\\type\z(\A\)' end='\z1' syn region contextEscaped display matchgroup=contextPreProc @@ -39,34 +33,52 @@ syn region contextEscaped display matchgroup=contextPreProc syn region contextEscaped display matchgroup=contextPreProc \ start='\\Typed\h\+{' end='}' -"syn region contextMath matchgroup=contextMath start='\$' end='\$' -" \ contains=contextStatement - -syn match contextBuiltin '\\\%(newif\|def\|gdef\|global\|let\|glet\|bgroup\)\>' - \ contains=@NoSpell -syn match contextBuiltin '\\\%(begingroup\|egroup\|endgroup\|long\|catcode\)\>' - \ contains=@NoSpell -syn match contextBuiltin '\\\%(unprotect\|unexpanded\|if\|else\|fi\|ifx\)\>' - \ contains=@NoSpell -syn match contextBuiltin '\\\%(futurelet\|protect\)\>' contains=@NoSpell -syn match contextBuiltin '\\\%([lr]q\)\>' contains=@NoSpell +syn match contextBuiltin display contains=@NoSpell + \ '\\\%(unprotect\|protect\|unexpanded\)' syn match contextPreProc '^\s*\\\%(start\|stop\)\=\%(component\|environment\|project\|product\).*$' \ contains=@NoSpell -syn match contextPreProc '^\s*\\input\s\+.*$' contains=@NoSpell + +if index(g:context_include, 'mp') != -1 + syn include @mpTop syntax/mp.vim + unlet b:current_syntax + + syn region contextMPGraphic transparent matchgroup=contextBlockDelim + \ start='\\start\z(\a*MPgraphic\|MP\%(page\|inclusions\|run\)\).*' + \ end='\\stop\z1' + \ contains=@mpTop +endif + +" TODO: also need to implement this for \\typeC or something along those +" lines. +function! s:include_syntax(name, group) + if index(g:context_include, a:name) != -1 + execute 'syn include @' . a:name . 'Top' 'syntax/' . a:name . '.vim' + unlet b:current_syntax + execute 'syn region context' . a:group . 'Code' + \ 'transparent matchgroup=contextBlockDelim' + \ 'start=+\\start' . a:group . '+ end=+\\stop' . a:group . '+' + \ 'contains=@' . a:name . 'Top' + endif +endfunction + +call s:include_syntax('c', 'C') +call s:include_syntax('ruby', 'Ruby') +call s:include_syntax('javascript', 'JS') +call s:include_syntax('xml', 'XML') syn match contextSectioning '\\chapter\>' contains=@NoSpell syn match contextSectioning '\\\%(sub\)*section\>' contains=@NoSpell syn match contextSpecial '\\crlf\>\|\\par\>\|-\{2,3}\||[<>/]\=|' \ contains=@NoSpell -syn match contextSpecial '\\[`'"]' +syn match contextSpecial /\\[`'"]/ syn match contextSpecial +\\char\%(\d\{1,3}\|'\o\{1,3}\|"\x\{1,2}\)\>+ \ contains=@NoSpell syn match contextSpecial '\^\^.' syn match contextSpecial '`\%(\\.\|\^\^.\|.\)' -syn match contextStyle '\\\%(em\|tt\|rm\|ss\|hw\|cg\)\>' +syn match contextStyle '\\\%(em\|ss\|hw\|cg\|mf\)\>' \ contains=@NoSpell syn match contextFont '\\\%(CAP\|Cap\|cap\|Caps\|kap\|nocap\)\>' \ contains=@NoSpell @@ -74,29 +86,18 @@ syn match contextFont '\\\%(Word\|WORD\|Words\|WORDS\)\>' \ contains=@NoSpell syn match contextFont '\\\%(vi\{1,3}\|ix\|xi\{0,2}\)\>' \ contains=@NoSpell -syn match contextFont '\\\%(tf[abcdx]\|bfx\|[is]lx\)\>' - \ contains=@NoSpell -syn match contextFont '\\\%(b[fsi]\|s[cl]\|it\|os\|mf\)\>' +syn match contextFont '\\\%(tf\|b[si]\|s[cl]\|os\)\%(xx\|[xabcd]\)\=\>' \ contains=@NoSpell -syn match contextDimension '[+-]\=\s*\%(\d\+\%([.,]\d*\)\=\|[.,]\d\+\)\s*\%(true\)\=\s*\%(p[tc]\|in\|bp\|c[mc]\|mm\|dd\|sp\|e[mx]\)\>' - \ contains=@NoSpell - -hi def link contextTodo Todo -hi def link contextComment Comment -hi def link contextEscaped Special -hi def link contextStatement Identifier -hi def link contextMath String hi def link contextBlockDelim Keyword hi def link contextBuiltin Keyword hi def link contextDelimiter Delimiter hi def link contextPreProc PreProc hi def link contextSectioning PreProc hi def link contextSpecial Special +hi def link contextType Type hi def link contextStyle contextType hi def link contextFont contextType -hi def link contextType Type -hi def link contextDimension Number let b:current_syntax = "context" diff --git a/runtime/syntax/crm.vim b/runtime/syntax/crm.vim index 35d9e50c58..17b67d44f0 100644 --- a/runtime/syntax/crm.vim +++ b/runtime/syntax/crm.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: CRM114 -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/cvsrc.vim b/runtime/syntax/cvsrc.vim index d901ae1fd2..6c2c4eea04 100644 --- a/runtime/syntax/cvsrc.vim +++ b/runtime/syntax/cvsrc.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: cvs(1) RC file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/dictconf.vim b/runtime/syntax/dictconf.vim index 21474fa065..e7fa476975 100644 --- a/runtime/syntax/dictconf.vim +++ b/runtime/syntax/dictconf.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: dict(1) configuration file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-06-30 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/dictdconf.vim b/runtime/syntax/dictdconf.vim index 5651d7c777..44bf6f8bad 100644 --- a/runtime/syntax/dictdconf.vim +++ b/runtime/syntax/dictdconf.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: dictd(8) configuration file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-01 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/dircolors.vim b/runtime/syntax/dircolors.vim index 8a22b1d0fd..da01907992 100644 --- a/runtime/syntax/dircolors.vim +++ b/runtime/syntax/dircolors.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: dircolors(1) input file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-06-27 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/elinks.vim b/runtime/syntax/elinks.vim index dea04babf6..5b3a3f1afd 100644 --- a/runtime/syntax/elinks.vim +++ b/runtime/syntax/elinks.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: elinks(1) configuration file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-19 if exists("b:current_syntax") finish diff --git a/runtime/syntax/esterel.vim b/runtime/syntax/esterel.vim index 30383554d2..7498364214 100644 --- a/runtime/syntax/esterel.vim +++ b/runtime/syntax/esterel.vim @@ -32,7 +32,7 @@ syn keyword esterelStatement every do loop abort weak syn keyword esterelStatement emit present await syn keyword esterelStatement if then else syn keyword esterelBoolean and or not xor xnor nor nand -syn keyword esterelOperator \[ \] +"syn keyword esterelOperator \[ \] syn keyword esterelPippo pippo " Esterel Types syn keyword esterelType integer float bolean diff --git a/runtime/syntax/eterm.vim b/runtime/syntax/eterm.vim index 8bc436705f..f6c50a20cb 100644 --- a/runtime/syntax/eterm.vim +++ b/runtime/syntax/eterm.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: eterm(1) configuration file -" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> -" Latest Revision: 2005-07-04 +" Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2006-04-21 if exists("b:current_syntax") finish @@ -61,7 +61,7 @@ syn match etermColorNumber contained display '\<\%(\d\|1[0-5]\)' syn match etermColorSpec contained display '\S\+' syn region etermColorContext fold transparent matchgroup=etermContext - \ start='^\s*begin\s\+color' + \ start='^\s*begin\s\+color\>' \ end='^\s*end\>' \ contains=@etermGeneral,etermColorOptions @@ -99,7 +99,7 @@ syn keyword etermAttrOptions contained scrollbar_width desktop \ nextgroup=etermNumber skipwhite syn region etermAttrContext fold transparent matchgroup=etermContext - \ start='^\s*begin\s\+attributes\' + \ start='^\s*begin\s\+attributes\>' \ end='^\s*end\>' \ contains=@etermGeneral,etermAttrOptions @@ -111,7 +111,7 @@ syn keyword etermIClassOptions contained anim nextgroup=etermNumber \ skipwhite syn region etermIClassContext fold transparent matchgroup=etermContext - \ start='^\s*begin\s\+imageclasses' + \ start='^\s*begin\s\+imageclasses\>' \ end='^\s*end\>' \ contains=@etermGeneral,etermImageContext, \ etermIClassOptions @@ -176,7 +176,7 @@ syn region etermImageOptions contained display oneline syn region etermImageContext contained fold transparent \ matchgroup=etermContext - \ start='^\s*begin\s\+image' + \ start='^\s*begin\s\+image\>' \ end='^\s*end\>' \ contains=@etermGeneral,etermImageOptions @@ -193,7 +193,7 @@ syn keyword etermMenuItemOptions contained text rtext nextgroup=etermString syn region etermMenuItemContext contained fold transparent \ matchgroup=etermContext - \ start='^\s*begin\s\+menuitem' + \ start='^\s*begin\s\+menuitem\>' \ end='^\s*end\>' \ contains=@etermGeneral,etermMenuItemOptions @@ -206,7 +206,7 @@ syn keyword etermMenuOptions contained font_name nextgroup=etermFont syn match etermMenuOptions contained display '\<sep\>\|-' syn region etermMenuContext fold transparent matchgroup=etermContext - \ start='^\s*begin\s\+menu' + \ start='^\s*begin\s\+menu\>' \ end='^\s*end\>' \ contains=@etermGeneral,etermMenuOptions, \ etermMenuItemContext @@ -227,7 +227,7 @@ syn keyword etermBindType contained string echo menu script syn match etermBindParam contained display '\S\+' |