comparison runtime/syntax/mma.vim @ 25773:11b656e74444

Update runtime files Commit: https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 9 21:55:11 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Sep 2021 22:00:10 +0200
parents 46763b01cd9a
children
comparison
equal deleted inserted replaced
25772:55753c17b73d 25773:11b656e74444
10 " Empty .m files will automatically be presumed as Matlab files 10 " Empty .m files will automatically be presumed as Matlab files
11 " unless you have the following in your .vimrc: 11 " unless you have the following in your .vimrc:
12 " 12 "
13 " let filetype_m="mma" 13 " let filetype_m="mma"
14 " 14 "
15 " I also recommend setting the default 'Comment' hilighting to something 15 " I also recommend setting the default 'Comment' highlighting to something
16 " other than the color used for 'Function', since both are plentiful in 16 " other than the color used for 'Function', since both are plentiful in
17 " most mathematica files, and they are often the same color (when using 17 " most mathematica files, and they are often the same color (when using
18 " background=dark). 18 " background=dark).
19 " 19 "
20 " Credits: 20 " Credits:
107 " allow nesting (* (* *) *) even though the frontend 107 " allow nesting (* (* *) *) even though the frontend
108 " won't always like it. 108 " won't always like it.
109 syntax region mmaComment start=+(\*+ end=+\*)+ skipempty contains=@mmaNotes,mmaItem,@mmaCommentStrings,mmaemPHAsis,mmaComment 109 syntax region mmaComment start=+(\*+ end=+\*)+ skipempty contains=@mmaNotes,mmaItem,@mmaCommentStrings,mmaemPHAsis,mmaComment
110 110
111 " Function Comments: 111 " Function Comments:
112 " just like a normal comment except the first sentance is Special ala Java 112 " just like a normal comment except the first sentence is Special ala Java
113 " (** *) 113 " (** *)
114 " TODO - fix this for nesting, or not... 114 " TODO - fix this for nesting, or not...
115 syntax region mmaFunctionComment start="(\*\*\+" end="\*\+)" contains=@mmaNotes,mmaItem,mmaFunctionTitle,@mmaCommentStrings,mmaemPHAsis,mmaComment 115 syntax region mmaFunctionComment start="(\*\*\+" end="\*\+)" contains=@mmaNotes,mmaItem,mmaFunctionTitle,@mmaCommentStrings,mmaemPHAsis,mmaComment
116 syntax region mmaFunctionTitle contained matchgroup=mmaFunctionComment start="\%((\*\*[ *]*\)" matchgroup=mmaFunctionTitle keepend end=".[.!-]\=\s*$" end="[.!-][ \t\r<&]"me=e-1 end="\%(\*\+)\)\@=" contained contains=@mmaNotes,mmaItem,mmaCommentStar 116 syntax region mmaFunctionTitle contained matchgroup=mmaFunctionComment start="\%((\*\*[ *]*\)" matchgroup=mmaFunctionTitle keepend end=".[.!-]\=\s*$" end="[.!-][ \t\r<&]"me=e-1 end="\%(\*\+)\)\@=" contained contains=@mmaNotes,mmaItem,mmaCommentStar
117 117