From 94f72a68c3dccade13ec7203a284620040f930f1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 11 Mar 2014 00:36:09 +0100 Subject: Update --- syntax/elixir.vim | 4 ++-- syntax/perl.vim | 6 ++++-- syntax/rust.vim | 50 +++++++++++++++++++++----------------------------- 3 files changed, 27 insertions(+), 33 deletions(-) (limited to 'syntax') diff --git a/syntax/elixir.vim b/syntax/elixir.vim index 0adf8fab..ff58d55d 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -16,8 +16,8 @@ syn match elixirComment '#.*' contains=elixirTodo syn keyword elixirTodo FIXME NOTE TODO OPTIMIZE XXX HACK contained syn keyword elixirKeyword is_atom is_binary is_bitstring is_boolean is_float is_function is_integer is_list is_number is_pid is_port is_record is_reference is_tuple is_exception -syn keyword elixirKeyword case cond bc lc inlist inbits if unless try receive function -syn keyword elixirKeyword exit raise throw after rescue catch else +syn keyword elixirKeyword case cond bc lc inlist inbits if unless try receive +syn keyword elixirKeyword exit raise throw after rescue catch else do end syn keyword elixirKeyword quote unquote super syn match elixirKeyword '\<\%(->\)\>\s*' diff --git a/syntax/perl.vim b/syntax/perl.vim index 4b1c89b8..c7a2f4d5 100644 --- a/syntax/perl.vim +++ b/syntax/perl.vim @@ -95,7 +95,7 @@ syn match perlStatementVector "\" syn match perlStatementFiles "\<\%(ch\%(dir\|mod\|own\|root\)\|glob\|link\|mkdir\|readlink\|rename\|rmdir\|symlink\|umask\|unlink\|utime\)\>" syn match perlStatementFiles "-[rwxoRWXOezsfdlpSbctugkTBMAC]\>" syn match perlStatementFlow "\<\%(caller\|die\|dump\|eval\|exit\|wantarray\|evalbytes\)\>" -syn match perlStatementInclude "\<\%(require\|import\)\>" +syn match perlStatementInclude "\<\%(require\|import\|unimport\)\>" syn match perlStatementInclude "\<\%(use\|no\)\s\+\%(\%(attributes\|attrs\|autouse\|parent\|base\|big\%(int\|num\|rat\)\|blib\|bytes\|charnames\|constant\|diagnostics\|encoding\%(::warnings\)\=\|feature\|fields\|filetest\|if\|integer\|less\|lib\|locale\|mro\|open\|ops\|overload\|re\|sigtrap\|sort\|strict\|subs\|threads\%(::shared\)\=\|utf8\|vars\|version\|vmsish\|warnings\%(::register\)\=\)\>\)\=" syn match perlStatementProc "\<\%(alarm\|exec\|fork\|get\%(pgrp\|ppid\|priority\)\|kill\|pipe\|set\%(pgrp\|priority\)\|sleep\|system\|times\|wait\%(pid\)\=\)\>" syn match perlStatementSocket "\<\%(accept\|bind\|connect\|get\%(peername\|sock\%(name\|opt\)\)\|listen\|recv\|send\|setsockopt\|shutdown\|socket\%(pair\)\=\)\>" @@ -513,7 +513,9 @@ HiLink perlStatementIndirObj perlStatement HiLink perlFunctionName perlIdentifier HiLink perlMethod perlIdentifier HiLink perlFunctionPRef perlType -HiLink perlPOD perlComment +if !get(g:, 'perl_include_pod', 1) + HiLink perlPOD perlComment +endif HiLink perlShellCommand perlString HiLink perlSpecialAscii perlSpecial HiLink perlSpecialDollar perlSpecial diff --git a/syntax/rust.vim b/syntax/rust.vim index 837a8787..bd27f057 100644 --- a/syntax/rust.vim +++ b/syntax/rust.vim @@ -3,7 +3,7 @@ " Maintainer: Patrick Walton " Maintainer: Ben Blum " Maintainer: Chris Morgan -" Last Change: 2014 Feb 14 +" Last Change: 2014 Feb 27 if version < 600 syntax clear @@ -18,8 +18,8 @@ syn keyword rustOperator as syn match rustAssert "\