[MMTP-devel] SF.net SVN: mtp: [32] trunk/etc/vim
Status: Pre-Alpha
Brought to you by:
idominguez
|
From: <ido...@us...> - 2007-12-06 15:00:33
|
Revision: 32
http://mtp.svn.sourceforge.net/mtp/?rev=32&view=rev
Author: idominguez
Date: 2007-12-06 07:00:22 -0800 (Thu, 06 Dec 2007)
Log Message:
-----------
Renaming files to new extensions
Added Paths:
-----------
trunk/etc/vim/ftdetect/mmtp.vim
trunk/etc/vim/syntax/mmtp.vim
Removed Paths:
-------------
trunk/etc/vim/ftdetect/mtp.vim
trunk/etc/vim/syntax/mtp.vim
Copied: trunk/etc/vim/ftdetect/mmtp.vim (from rev 13, trunk/etc/vim/ftdetect/mtp.vim)
===================================================================
--- trunk/etc/vim/ftdetect/mmtp.vim (rev 0)
+++ trunk/etc/vim/ftdetect/mmtp.vim 2007-12-06 15:00:22 UTC (rev 32)
@@ -0,0 +1 @@
+au BufNewFile,BufRead *.mtp setf mtp
Deleted: trunk/etc/vim/ftdetect/mtp.vim
===================================================================
--- trunk/etc/vim/ftdetect/mtp.vim 2007-12-06 14:26:12 UTC (rev 31)
+++ trunk/etc/vim/ftdetect/mtp.vim 2007-12-06 15:00:22 UTC (rev 32)
@@ -1 +0,0 @@
-au BufNewFile,BufRead *.mtp setf mtp
Copied: trunk/etc/vim/syntax/mmtp.vim (from rev 13, trunk/etc/vim/syntax/mtp.vim)
===================================================================
--- trunk/etc/vim/syntax/mmtp.vim (rev 0)
+++ trunk/etc/vim/syntax/mmtp.vim 2007-12-06 15:00:22 UTC (rev 32)
@@ -0,0 +1,71 @@
+" Vim syntax file
+" Language: mtp grammar
+" Maintainer: Babel Group mt...@ba...
+" URL: http://babel.ls.fi.upm.es
+" Last change: 11/23/2004
+
+" ----------------------------------------------------
+" You can test this file by executing in vim
+" :so $PATH_TO_mtp.vim
+"
+" You also can place this file in ~/.vim/syntax
+" and execute in vim:
+" :set syntax=mtp
+"
+" If you want vim to automatically detect the file type
+" (by checking its extension) and highlight it,
+" just add these lines to your ~/.vimrc or
+" ~/.vim/filetype.vim file
+"
+" augroup filetypedetect
+" au BufNewFile,BufRead *.mtp setf mtp
+" augroup END
+" ------------------------------------------------
+"
+" For version 5.x: Clear all syntax items
+" For version 6.x: Quit when a syntax file was already loaded
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+" This allows multi-line comments with the symbol \' inside a comment
+" syn region mtpComment start=/\/\*/ skip=// end=/\*\//
+syn region mtpComment start=/\/\*/ end=/\*\//
+syn match charLit /'\(\\.\|.\)'/
+syn region stringlit start=/"/ skip=/\(\\\\\|\\"\)/ end=/"/
+syn match symbol /<[a-zA-Z][a-zA-Z0-9_]*>/
+" MTP keywords
+syn keyword mtpKeyword MODULE USE SIGNATURE SKIP COMMENT AXIOM GRAMMAR
+
+" catch errors caused by wrong parenthesis
+syn region parenT transparent matchgroup=paren start="(" end=")" contains=@mtpComment,charLit,stringLit,symbol,mtpKeyword,parenT1
+syn region parenT1 transparent matchgroup=paren1 start="(" end=")" contains=@mtpComment,charLit,stringLit,symbol,mtpKeyword,parenT2 contained
+syn region parenT2 transparent matchgroup=paren2 start="(" end=")" contains=@mtpComment,charLit,stringLit,symbol,mtpKeyword,parenT contained
+syn match parenError ")"
+
+
+" Define the default highlighting.
+" For version 5.7 and earlier: only when not done already
+" For version 5.8 and later: only when an item doesn't have highlighting yet
+if version >= 508 || !exists("did_mtp_syn_inits")
+ if version < 508
+ let did_mtp_syn_inits = 1
+ command -nargs=+ HiLink hi link <args>
+ else
+ command -nargs=+ HiLink hi def link <args>
+ endif
+
+ HiLink mtpKeyword Type
+ HiLink mtpComment Comment
+ HiLink stringlit String
+ HiLink charlit String
+ HiLink symbol Function
+ HiLink parenError error
+ delcommand HiLink
+endif
+
+let b:current_syntax = "mtp"
+
+" vim: ts=8
Deleted: trunk/etc/vim/syntax/mtp.vim
===================================================================
--- trunk/etc/vim/syntax/mtp.vim 2007-12-06 14:26:12 UTC (rev 31)
+++ trunk/etc/vim/syntax/mtp.vim 2007-12-06 15:00:22 UTC (rev 32)
@@ -1,71 +0,0 @@
-" Vim syntax file
-" Language: mtp grammar
-" Maintainer: Babel Group mt...@ba...
-" URL: http://babel.ls.fi.upm.es
-" Last change: 11/23/2004
-
-" ----------------------------------------------------
-" You can test this file by executing in vim
-" :so $PATH_TO_mtp.vim
-"
-" You also can place this file in ~/.vim/syntax
-" and execute in vim:
-" :set syntax=mtp
-"
-" If you want vim to automatically detect the file type
-" (by checking its extension) and highlight it,
-" just add these lines to your ~/.vimrc or
-" ~/.vim/filetype.vim file
-"
-" augroup filetypedetect
-" au BufNewFile,BufRead *.mtp setf mtp
-" augroup END
-" ------------------------------------------------
-"
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
- finish
-endif
-
-" This allows multi-line comments with the symbol \' inside a comment
-" syn region mtpComment start=/\/\*/ skip=// end=/\*\//
-syn region mtpComment start=/\/\*/ end=/\*\//
-syn match charLit /'\(\\.\|.\)'/
-syn region stringlit start=/"/ skip=/\(\\\\\|\\"\)/ end=/"/
-syn match symbol /<[a-zA-Z][a-zA-Z0-9_]*>/
-" MTP keywords
-syn keyword mtpKeyword MODULE USE SIGNATURE SKIP COMMENT AXIOM GRAMMAR
-
-" catch errors caused by wrong parenthesis
-syn region parenT transparent matchgroup=paren start="(" end=")" contains=@mtpComment,charLit,stringLit,symbol,mtpKeyword,parenT1
-syn region parenT1 transparent matchgroup=paren1 start="(" end=")" contains=@mtpComment,charLit,stringLit,symbol,mtpKeyword,parenT2 contained
-syn region parenT2 transparent matchgroup=paren2 start="(" end=")" contains=@mtpComment,charLit,stringLit,symbol,mtpKeyword,parenT contained
-syn match parenError ")"
-
-
-" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_mtp_syn_inits")
- if version < 508
- let did_mtp_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink mtpKeyword Type
- HiLink mtpComment Comment
- HiLink stringlit String
- HiLink charlit String
- HiLink symbol Function
- HiLink parenError error
- delcommand HiLink
-endif
-
-let b:current_syntax = "mtp"
-
-" vim: ts=8
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|