Changeset 11651 in project


Ignore:
Timestamp:
08/16/08 03:58:06 (13 years ago)
Author:
svnwiki
Message:

Changes applied for Anonymous (60.12.143.13) through svnwiki:

Fixed some bugs suggested by Tobia Conforto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/vim

    r11602 r11651  
    2020
    2121<enscript highlight=diff>
    22 --- /usr/share/vim/vim71/syntax/scheme.vim      2008-08-02 09:45:48.000000000 +0800
    23 +++ scheme.vim  2008-08-02 14:52:12.000000000 +0800
    24 @@ -135,6 +135,9 @@
    25  syn match      schemeError     oneline    ,<[-a-z!$%&*/:<=>?^_~0-9+.@]*>[^-a-z!$%&*/:<=>?^_~0-9+.@ \t\[\]()";]\+[^ \t\[\]()";]*,
     22--- old-scheme.vim      2008-08-16 09:35:17.000000000 +0800
     23+++ scheme.vim  2008-08-16 09:34:38.000000000 +0800
     24@@ -29,6 +29,11 @@
     25 syn match      schemeError     oneline    ![^ \t()\[\]";]*!
     26 syn match      schemeError     oneline    ")"
    2627 
    27  " Non-quoted lists, and strings:
    28 +" Add TempStruc before Struc so that when do highlight, TempStruc will be
    29 +" overrighted. But TempStruc still can be used to delimit a sexp.
     28+" Add TempStruc before Struc and Quoted.
     29+" although TempStruc will be overrighted by them when do hightlighting,
     30+" it still can be used to delimit a sexp.
    3031+syn region schemeTempStruc start="(" end=")" contained transparent contains=schemeTempStruc
     32+
     33 " Quoted and backquoted stuff
    3134 
    32  syn region schemeStruc matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" contains=ALL
    33  syn region schemeStruc matchgroup=Delimiter start="#(" matchgroup=Delimiter end=")" contains=ALL
    34 @@ -231,8 +234,16 @@
     35 syn region schemeQuoted matchgroup=Delimiter start="['`]" end=![ \t()\[\]";]!me=e-1 contains=ALLBUT,schemeStruc,schemeSyntax,schemeFunc
     36@@ -231,8 +236,13 @@
    3537 
    3638 
     
    4345+    syn region schemeSexpComment start="#;(" end=")" contains=schemeComment,schemeTempStruc
    4446+    hi def link schemeSexpComment Comment
     47 
     48     syn match schemeOther oneline    "##[-a-z!$%&*/:<=>?^_~0-9+.@#%]\+"
     49     syn match schemeExtSyntax oneline    "#:[-a-z!$%&*/:<=>?^_~0-9+.@#%]\+"
     50@@ -268,6 +278,9 @@
     51     " suggested by Alex Queiroz
     52     syn match schemeExtSyntax oneline    "#![-a-z!$%&*/:<=>?^_~0-9+.@#%]\+"
     53     syn region schemeString start=+#<#\s*\z(.*\)+ end=+^\z1$+
    4554+
    4655+    syn match schemeShebang "^#!/.*csi.*$"
    4756+    hi def link schemeShebang Comment
     57 endif
    4858 
    49      syn match schemeOther oneline    "##[-a-z!$%&*/:<=>?^_~0-9+.@#%]\+"
    50      syn match schemeExtSyntax oneline    "#:[-a-z!$%&*/:<=>?^_~0-9+.@#%]\+"
     59 " Synchronization and the wrapping up...
    5160</enscript>
    5261
     
    110119
    111120<enscript highlight=vim>
    112 nmap <silent> == :call Scheme_indent_top_sexp()<cr>
     121nmap &lt;silent&gt; == :call Scheme_indent_top_sexp()&lt;cr&gt;
    113122
    114123" Indent a toplevel sexp.
     
    126135Following is a simple way to add interaction facility to VIM using screen.
    127136
     137It was stolen from this [[http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/|link]].
     138Thanks Jonathan Palardy.
     139
    128140Put following lines into '''ftplugin/scheme.vim'''
    129141
    130142<enscript highlight=vim>
    131 nmap <silent> <leader>es :call Scheme_eval_defun()<cr>                                 
    132 nmap <silent> <leader>ef  :call Scheme_send_sexp("(load \"" . expand("%:p") . "\")\n")<cr>
     143nmap &lt;silent&gt; &lt;leader&gt;es :call Scheme_eval_defun()&lt;cr&gt;                                 
     144nmap &lt;silent&gt; &lt;leader&gt;ef  :call Scheme_send_sexp("(load \"" . expand("%:p") . "\")\n")&lt;cr&gt;
    133145
    134146fun! Scheme_send_sexp(sexp)                                                     
Note: See TracChangeset for help on using the changeset viewer.