Mercurial > vim
comparison runtime/syntax/matlab.vim @ 10734:523cd59d6db0
Update runtime files.
commit https://github.com/vim/vim/commit/690afe1fef87e7eef6fb7343a926617d5f7315fa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 28 18:34:47 2017 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Jan 2017 18:45:05 +0100 |
parents | 46763b01cd9a |
children | 235cbf491430 |
comparison
equal
deleted
inserted
replaced
10733:7a5df0f9635f | 10734:523cd59d6db0 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Matlab | 2 " Language: Matlab |
3 " Maintainer: Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com | 3 " Maintainer: Alex Burka <vim@alexburka.com> |
4 " Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org> | 4 " Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org> |
5 " Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com | |
5 " Original author: Mario Eusebio | 6 " Original author: Mario Eusebio |
6 " Last Change: Wed Jan 13 11:12:34 CET 2010 | 7 " Last Change: Mon Jan 23 2017 |
7 " sinh added to matlab implicit commands | 8 " added support for cell mode |
8 " Change History: | 9 " Change History: |
10 " - now highlights cell-mode separator comments | |
9 " - 'global' and 'persistent' keyword are now recognized | 11 " - 'global' and 'persistent' keyword are now recognized |
10 | 12 |
11 " quit when a syntax file was already loaded | 13 " quit when a syntax file was already loaded |
12 if exists("b:current_syntax") | 14 if exists("b:current_syntax") |
13 finish | 15 finish |
58 | 60 |
59 syn match matlabComment "%.*$" contains=matlabTodo,matlabTab | 61 syn match matlabComment "%.*$" contains=matlabTodo,matlabTab |
60 " MT_ADDON - correctly highlights words after '...' as comments | 62 " MT_ADDON - correctly highlights words after '...' as comments |
61 syn match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab | 63 syn match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab |
62 syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab | 64 syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab |
65 syn match matlabCellComment "^%%.*$" | |
63 | 66 |
64 syn keyword matlabOperator break zeros default margin round ones rand | 67 syn keyword matlabOperator break zeros default margin round ones rand |
65 syn keyword matlabOperator ceil floor size clear zeros eye mean std cov | 68 syn keyword matlabOperator ceil floor size clear zeros eye mean std cov |
66 | 69 |
67 syn keyword matlabFunction error eval function | 70 syn keyword matlabFunction error eval function |
94 hi def link matlabStatement Statement | 97 hi def link matlabStatement Statement |
95 hi def link matlabOO Statement | 98 hi def link matlabOO Statement |
96 hi def link matlabSemicolon SpecialChar | 99 hi def link matlabSemicolon SpecialChar |
97 hi def link matlabComment Comment | 100 hi def link matlabComment Comment |
98 hi def link matlabMultilineComment Comment | 101 hi def link matlabMultilineComment Comment |
102 hi def link matlabCellComment Todo | |
99 hi def link matlabScope Type | 103 hi def link matlabScope Type |
100 | 104 |
101 hi def link matlabArithmeticOperator matlabOperator | 105 hi def link matlabArithmeticOperator matlabOperator |
102 hi def link matlabRelationalOperator matlabOperator | 106 hi def link matlabRelationalOperator matlabOperator |
103 hi def link matlabLogicalOperator matlabOperator | 107 hi def link matlabLogicalOperator matlabOperator |