Thread: [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.
|
|
From: <ido...@us...> - 2007-12-06 15:05:29
|
Revision: 33
http://mtp.svn.sourceforge.net/mtp/?rev=33&view=rev
Author: idominguez
Date: 2007-12-06 07:05:20 -0800 (Thu, 06 Dec 2007)
Log Message:
-----------
* New syntax-highlighting implemented
* MMTP used as name and extension
Modified Paths:
--------------
trunk/etc/vim/ftdetect/mmtp.vim
trunk/etc/vim/syntax/mmtp.vim
Modified: trunk/etc/vim/ftdetect/mmtp.vim
===================================================================
--- trunk/etc/vim/ftdetect/mmtp.vim 2007-12-06 15:00:22 UTC (rev 32)
+++ trunk/etc/vim/ftdetect/mmtp.vim 2007-12-06 15:05:20 UTC (rev 33)
@@ -1 +1 @@
-au BufNewFile,BufRead *.mtp setf mtp
+au BufNewFile,BufRead *.mmtp setf mmtp
Modified: trunk/etc/vim/syntax/mmtp.vim
===================================================================
--- trunk/etc/vim/syntax/mmtp.vim 2007-12-06 15:00:22 UTC (rev 32)
+++ trunk/etc/vim/syntax/mmtp.vim 2007-12-06 15:05:20 UTC (rev 33)
@@ -1,16 +1,16 @@
" Vim syntax file
-" Language: mtp grammar
-" Maintainer: Babel Group mt...@ba...
-" URL: http://babel.ls.fi.upm.es
-" Last change: 11/23/2004
+" Language: mmtp grammar
+" Maintainer: Ivan Perez-Dominguez mtp...@li...
+" URL: http://mtp.sourceforge.net
+" Last change: 2007-12-6
" ----------------------------------------------------
" You can test this file by executing in vim
-" :so $PATH_TO_mtp.vim
+" :so $PATH_TO_mmtp.vim
"
" You also can place this file in ~/.vim/syntax
" and execute in vim:
-" :set syntax=mtp
+" :set syntax=mmtp
"
" If you want vim to automatically detect the file type
" (by checking its extension) and highlight it,
@@ -18,7 +18,7 @@
" ~/.vim/filetype.vim file
"
" augroup filetypedetect
-" au BufNewFile,BufRead *.mtp setf mtp
+" au BufNewFile,BufRead *.mmtp setf mtp
" augroup END
" ------------------------------------------------
"
@@ -31,34 +31,34 @@
endif
" This allows multi-line comments with the symbol \' inside a comment
-" syn region mtpComment start=/\/\*/ skip=// end=/\*\//
-syn region mtpComment start=/\/\*/ end=/\*\//
+" syn region mmtpComment start=/\/\*/ skip=// end=/\*\//
+syn region mmtpComment 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
+" MMTP keywords
+syn keyword mmtpKeyword MODULE USE SIGNATURE SKIP COMMENT AXIOM GRAMMAR
+syn match symbol /[a-zA-Z][a-zA-Z0-9_]*/
" 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 region parenT transparent matchgroup=paren start="(" end=")" contains=@mmtpComment,charLit,stringLit,symbol,mmtpKeyword,parenT1
+syn region parenT1 transparent matchgroup=paren1 start="(" end=")" contains=@mmtpComment,charLit,stringLit,symbol,mmtpKeyword,parenT2 contained
+syn region parenT2 transparent matchgroup=paren2 start="(" end=")" contains=@mmtpComment,charLit,stringLit,symbol,mmtpKeyword,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 || !exists("did_mmtp_syn_inits")
if version < 508
- let did_mtp_syn_inits = 1
+ let did_mmtp_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 mmtpKeyword Type
+ HiLink mmtpComment Comment
HiLink stringlit String
HiLink charlit String
HiLink symbol Function
@@ -66,6 +66,6 @@
delcommand HiLink
endif
-let b:current_syntax = "mtp"
+let b:current_syntax = "mmtp"
" vim: ts=8
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|