Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: How Scheme and Perl Became Friends

by beppu (Hermit)
on Feb 23, 2002 at 05:27 UTC ( #147043=note: print w/ replies, xml ) Need Help??

in reply to How Scheme and Perl Became Friends

For completeness, I want to post one more thing -- a syntax highlighting file for vim that understands this mix of Scheme and Perl. It's a testament to vim's good design that something like this could be implemented so easily. This should be showing up in the March 2002 issue of Linux Magazine, so consider this a sneak preview.


" Scheme w/ Perl as a preprocessor " Language: Scheme+Perl " Maintainer: John Beppu <> " Last Change: 2001 Dec 17 " Location: " for portability if version < 600 syntax clear elseif exists("b:current_syntax") finish endif " load all of the scheme info source $VIMRUNTIME/syntax/scheme.vim unlet b:current_syntax " load all of the perl info into @Perl syntax include @Perl $VIMRUNTIME/syntax/perl.vim syntax region scmplPerl \ start=/{/ \ end=/}/ \ contains=@Perl, scmplPerl " the script header syntax match scmplSharpBang \ "^#!/usr/bin/env.*gimp-request.*$" " link syntax elements to standard highlighting groups if version >= 508 || !exists("did_scmpl_syn_inits") if version < 508 let did_scmpl_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink scmplSharpBang PreProc endif " finish let b:current_syntax = "scmpl"
Comment on Re: How Scheme and Perl Became Friends
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://147043]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2016-05-29 13:47 GMT
Find Nodes?
    Voting Booth?