Skip to content

Commit

Permalink
Change lisp syntax for #\( and #\) to "string" so that paren matching…
Browse files Browse the repository at this point in the history
… ignores them

Otherwise incorrect matching parens are highlighted

E.g. for the last closing paren of these forms:

(when (eq some-char #\()
  5)

(when (eq some-char #\))
  4)
  • Loading branch information
kovisoft committed Apr 22, 2013
1 parent 41cdd1a commit 6e0dd70
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions syntax/lisp/slimv-syntax-lisp.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
" slimv-syntax-lisp.vim:
" Lisp syntax plugin for Slimv
" Version: 0.9.11
" Last Change: 22 Apr 2013
" Maintainer: Tamas Kovacs <kovisoft at gmail dot com>
" License: This file is placed in the public domain.
" No warranty, express or implied.
" *** *** Use At-Your-Own-Risk! *** ***
"
" =====================================================================
"
" Load Once:
if exists("b:current_syntax") || exists("g:slimv_disable_lisp")
finish
endif

runtime syntax/**/lisp.vim

" Change syntax for #\( and #\) to string so that paren matching ignores them
syn match lispString !#\\[\(\)]!

0 comments on commit 6e0dd70

Please sign in to comment.