Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.

scmpl.vim

" Scheme w/ Perl as a preprocessor " Language: Scheme+Perl " Maintainer: John Beppu <beppu@cpan.org> " Last Change: 2001 Dec 17 " Location: http://www.linux-mag.com/ " 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"

In reply to Re: How Scheme and Perl Became Friends by beppu
in thread How Scheme and Perl Became Friends by beppu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-16 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found