# New Ticket Created by chromatic
# Please include the string: [perl #28849]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=28849 >
Hi there,
After playing with vim syntax highlighting for a few minutes, I hacked
up syntax highlighting for POD comments. This works on my box, but I'm
not quite sure it's portable. Are there any other vim hackers willing
to try it out?
It does fix one typo, so it's not completely useless.
-- c
Index: editor/imc.vim.in
===================================================================
RCS file: /cvs/public/parrot/editor/imc.vim.in,v
retrieving revision 1.3
diff -u -u -r1.3 imc.vim.in
--- editor/imc.vim.in 19 Mar 2004 11:09:31 -0000 1.3
+++ editor/imc.vim.in 16 Apr 2004 05:21:18 -0000
@@ -5,7 +5,7 @@
" For installation please read:
" :he filetypes
-" :he sytax
+" :he syntax
"
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -18,6 +18,9 @@
syntax clear
+syn include @Pod syntax/pod.vim
+syn region myPod start="^=pod" start="^=item" start="^=head" end="^=cut" keepend [EMAIL PROTECTED]
+
syn keyword imcType int float string pmc object
syn keyword imcPMC Array Boolean Compiler Continuation Coroutine CSub
syn keyword imcPMC Eval IntList Iterator Key ManagedStruct MultiArray
@@ -60,6 +63,7 @@
command -nargs=+ HiLink hi def link <args>
endif
+ HiLink myPod Comment
HiLink imcWord Normal
HiLink imcComment Comment
HiLink imcLabel Label