Author: dylan
Date: 2005-03-23 00:08:13 -0500 (Wed, 23 Mar 2005)
New Revision: 654
Added:
trunk/dev-tools/texinfo.vim
Modified:
trunk/
trunk/dev-tools/README
Log:
[EMAIL PROTECTED]: dylan | 2005-03-23 00:08:05 -0500
added my own texinfo.vim, because the one that comes with vim is rather
unpleasant.
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- 1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk:11166
1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk-merge-10131:11178
27e50396-46e3-0310-8b22-ae223a1f35ce:/local:212
e9404bb1-7af0-0310-a7ff-e22194cd388b:/haver/local:861
edfcd8bd-4ce7-0310-a97e-bb1efd40edf3:/local:238
+ 1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk:11166
1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk-merge-10131:11178
27e50396-46e3-0310-8b22-ae223a1f35ce:/local:212
e9404bb1-7af0-0310-a7ff-e22194cd388b:/haver/local:863
edfcd8bd-4ce7-0310-a97e-bb1efd40edf3:/local:238
Modified: trunk/dev-tools/README
===================================================================
--- trunk/dev-tools/README 2005-03-22 06:44:01 UTC (rev 653)
+++ trunk/dev-tools/README 2005-03-23 05:08:13 UTC (rev 654)
@@ -1,7 +1 @@
-
-Usage:
- gpg-sign-files.pl key FILES < passphrase.txt
-
- haver-backup.pl
-
- haver-snap.pl
+Here's some custom scripts we've had to write for the haver project.
Added: trunk/dev-tools/texinfo.vim
===================================================================
--- trunk/dev-tools/texinfo.vim 2005-03-22 06:44:01 UTC (rev 653)
+++ trunk/dev-tools/texinfo.vim 2005-03-23 05:08:13 UTC (rev 654)
@@ -0,0 +1,121 @@
+" Vim syntax file
+" Language: Texinfo
+" Maintainer: Dylan William Hardison <[EMAIL PROTECTED]>
+" Last Change: 22-Mar-2005.
+" Remark: Better than the default texinfo.vim :)
+" Remark: Only works in vim 6.x and higher.
+
+" For version 6.x: Quit when a syntax file was already loaded
+if exists("b:current_syntax")
+ finish
+endif
+
+" texinfo is case sensitive. I think.
+syn case match
+
+
+" Mark the TeX \input command and filename as a special thing.
+syn match texiSpecial "\\input\s\+texinfo"
+" Mark @bye as special too.
+syn region texiSpecial start="@bye\n\?" end="^\n\n\n$"
+
+
+syn region texiParam matchgroup=texiFunction start="@\w\+{" end="}"
skip="@\w\+{.*"
+ \ contains=texiParam,texiFunction
+
+syn region texiParam matchgroup=texiStatement start="[EMAIL PROTECTED] "
+ \ skip="\\$" end="$" contains=texiFunction,texiParam
oneline
+syn match texiStatement "@end \w\+"
+syn match texiStatement "[EMAIL PROTECTED]"
+
+
+" @ignore is colored like any other @-statement, but the contents are comment
color.
+syn region texiComment matchgroup=texiStatement start="[EMAIL PROTECTED]"
end="[EMAIL PROTECTED] ignore\s*$"
+" Comments.
+syn match texiComment "@c$"
+syn match texiComment "@c .*$"
+syn match texiComment "@comment .*"
+
+syn match texiSet /[EMAIL PROTECTED] / nextgroup=texiSetVar skipwhite
+syn match texiSetVar /[A-Za-z0-9]\+/ contained nextgroup=texiSetVal skipwhite
+syn match texiSetVal /.*$/ contained
+
+" TODO: add support for named menu items.
+syn region texiMenu matchgroup=texiStatement start="[EMAIL PROTECTED]"
end="[EMAIL PROTECTED] menu\s*$"
+ \ contains=texiMenuItem,texiMenuMarker
+syn region texiMenuItem matchgroup=texiMenuMarker start=/^* / end="::"
contained oneline
+
+
+" Borrowing this from the older texinfo.vim
+syn match texiChar /@["'=^`~][aeinouyAEINOUY]/
+syn match texiChar "@\(!\|?\|@\|\s\)"
+syn match texiChar "@{"
+syn match texiChar "@}"
+" accents
+syn match texiChar "@=."
+syn match texiChar "@dotaccent{.}"
+syn match texiChar "@H{.}"
+syn match texiChar "@,{[cC]}"
+syn match texiChar "@AA{}"
+syn match texiChar "@aa{}"
+syn match texiChar "@L{}"
+syn match texiChar "@l{}"
+syn match texiChar "@O{}"
+syn match texiChar "@o{}"
+syn match texiChar "@ringaccent{.}"
+syn match texiChar "@tieaccent{..}"
+syn match texiChar "@u{.}"
+syn match texiChar "@ubaraccent{.}"
+syn match texiChar "@udotaccent{.}"
+syn match texiChar "@v{.}"
+"ligatures
+syn match texiChar "@AE{}"
+syn match texiChar "@ae{}"
+syn match texiChar "@copyright{}"
+syn match texiChar "@bullet" contained "for tables and lists
+syn match texiChar "@bullet{}"
+syn match texiChar "@dotless{i}"
+syn match texiChar "@dotless{j}"
+syn match texiChar "@dots{}"
+syn match texiChar "@enddots{}"
+syn match texiChar "@equiv" contained "for tables and lists
+syn match texiChar "@equiv{}"
+syn match texiChar "@error{}"
+syn match texiChar "@exclamdown{}"
+syn match texiChar "@expansion{}"
+syn match texiChar "@minus" contained "for tables and lists
+syn match texiChar "@minus{}"
+syn match texiChar "@OE{}"
+syn match texiChar "@oe{}"
+syn match texiChar "@point" contained "for tables and lists
+syn match texiChar "@point{}"
+syn match texiChar "@pounds{}"
+syn match texiChar "@print{}"
+syn match texiChar "@questiondown{}"
+syn match texiChar "@result" contained "for tables and lists
+syn match texiChar "@result{}"
+syn match texiChar "@ss{}"
+syn match texiChar "@TeX{}"
+
+
+
+" Define the default highlighting.
+
+hi def link texiComment Comment
+hi def link texiSpecial Special
+hi def link texiStatement Statement
+hi def link texiFunction Function
+hi def link texiParam String
+hi def link texiChar Special
+hi def link texiSet Statement
+hi def link texiSetVar Identifier
+hi def link texiSetVal texiParam
+
+hi def link texiMenuItem Underlined
+hi def link texiMenuMarker Type
+hi def link texiMenu texiComment
+
+
+
+
+let b:current_syntax = "texinfo"