Permalink
Browse files

Added picolisp syntax file. Fixed spell checking highlighting.

  • Loading branch information...
h3rald committed Sep 18, 2011
1 parent 96609d5 commit 867f9f7905f254e86e1b263015eea1c228e1f8c2
Showing with 65 additions and 12 deletions.
  1. +3 −3 .tmux.conf
  2. +31 −8 .vim/colors/herald.vim
  3. +29 −0 .vim/syntax/picolisp.vim
  4. +2 −1 .vimrc
View
@@ -1,3 +1,3 @@
-tmux set -g prefix C-a
-tmux bind-key C-a last-window
-tmux set -g default-terminal "screen-256color"
+set -g prefix C-a
+bind-key C-a last-window
+set -g default-terminal "screen-256color"
View
@@ -104,6 +104,14 @@ if has("gui_running")
hi htmlUnderline guibg=#1F1F1F guifg=#D0D0D0 gui=underline
hi htmlUnderlineItalic guibg=#1F1F1F guifg=#D0D0D0 gui=underline,italic
+ " Spellcheck formatting
+ if has("spell")
+ hi SpellBad guisp=#FC4234 gui=undercurl
+ hi SpellCap guisp=#70BDF1 gui=undercurl
+ hi SpellLocal guisp=#FFEE68 gui=undercurl
+ hi SpellRare guisp=#6DF584 gui=undercurl
+ endif
+
elseif &t_Co == 256
" -> Text; Miscellaneous
@@ -191,6 +199,14 @@ elseif &t_Co == 256
hi htmlUnderline ctermbg=234 ctermfg=252 cterm=underline
hi htmlUnderlineItalic ctermbg=234 ctermfg=252 cterm=underline,italic
+ " Spellcheck formatting
+ if has("spell")
+ hi SpellBad ctermbg=234 ctermfg=203 cterm=underline
+ hi SpellCap ctermbg=234 ctermfg=84 cterm=none
+ hi SpellLocal ctermbg=234 ctermfg=75 cterm=none
+ hi SpellRare ctermbg=234 ctermfg=227 cterm=none
+ endif
+
elseif &t_Co == 16
" -> Text; Miscellaneous
@@ -278,6 +294,13 @@ elseif &t_Co == 16
hi htmlUnderline ctermbg=8 ctermfg=7 cterm=underline
hi htmlUnderlineItalic ctermbg=8 ctermfg=7 cterm=underline,italic
+ " Spellcheck formatting
+ if has("spell")
+ hi SpellBad ctermbg=8 ctermfg=4 cterm=underline
+ hi SpellCap ctermbg=8 ctermfg=10 cterm=none
+ hi SpellLocal ctermbg=8 ctermfg=11 cterm=none
+ hi SpellRare ctermbg=8 ctermfg=14 cterm=none
+ endif
elseif &t_Co == 8
@@ -366,6 +389,14 @@ elseif &t_Co == 8
hi htmlUnderline ctermbg=8 ctermfg=7 cterm=underline
hi htmlUnderlineItalic ctermbg=8 ctermfg=7 cterm=underline,italic
+ " Spellcheck formatting
+ if has("spell")
+ hi SpellBad ctermbg=8 ctermfg=4 cterm=underline
+ hi SpellCap ctermbg=8 ctermfg=2 cterm=none
+ hi SpellLocal ctermbg=8 ctermfg=3 cterm=none
+ hi SpellRare ctermbg=8 ctermfg=6 cterm=none
+ endif
+
endif
hi! default link bbcodeBold htmlBold
@@ -375,11 +406,3 @@ hi! default link bbcodeBoldUnderline htmlBoldUnderline
hi! default link bbcodeItalic htmlItalic
hi! default link bbcodeItalicUnderline htmlUnderlineItalic
hi! default link bbcodeUnderline htmlUnderline
-
-" Spellcheck formatting
-if has("spell")
- hi SpellBad guisp=#FC4234 gui=undercurl
- hi SpellCap guisp=#70BDF1 gui=undercurl
- hi SpellLocal guisp=#FFEE68 gui=undercurl
- hi SpellRare guisp=#6DF584 gui=undercurl
-endif
View
@@ -0,0 +1,29 @@
+autocmd FileType picolisp call s:PicoLisp()
+ function! s:PicoLisp()
+ setl iskeyword+=?,$,+,*,/,%,=,>,<,!
+
+ syn match PicoLispComment /#.*$/
+ syn region PicoLispCommentRegion start="#{" end="}#"
+ syn match PicoLispNumber /\v<[-+]?\d+(\.\d+)?>/
+ syn region PicoLispString start=/"/ skip=/\\\\\|\\"/ end=/"/
+ syn region PicoLispStringRaw start=/{\$/ end=/\$}/
+ syn match PicoLispParentheses /[()\[\]]/
+ syn keyword PicoLispSpecial NIL T This
+ syn keyword PicoLispDef def redef undef de class extend dm rel var set setq let? let use bind job env up default xchg on off onOff zero one put putl =:
+ syn keyword PicoLispCond and or not nand nor if ifn if2 when unless cond nond case state at while until loop do for throw catch finally quit abort wait task timeout alarm bye later
+ syn keyword PicoLispIO in out pool call fork pipe
+ syn keyword PicoLispDebug test $ !
+
+ hi default link PicoLispComment Comment
+ hi default link PicoLispCommentRegion Comment
+ hi default link PicoLispNumber Number
+ hi default link PicoLispString String
+ hi default link PicoLispStringRaw String
+ hi default link PicoLispSpecial Constant
+ hi PicoLispParentheses ctermfg=8 guifg=DarkGrey
+ hi default link PicoLispDef Define
+ hi default link PicoLispCond Conditional
+ hi default link PicoLispIO Identifier
+ hi default link PicoLispDebug Type
+ endfunction
+autocmd BufRead,BufNewFile *.l setl ft=picolisp
View
3 .vimrc
@@ -10,7 +10,7 @@ if has("win32") || has("win16")
set backupdir=C:\temp
set dir=C:\temp
let $vimrc = $VIM."\\_vimrc"
- let $scrapbook = "D:\\Documents\\Work\\Resources\\Miscellaneous\\scrapbook.textile"
+ let $scrapbook = "D:\\Documents\\Work\\Resources\\scrapbook.textile"
else
let osys=system('uname -s')
set guifont=Monospace\ 9
@@ -73,3 +73,4 @@ au BufNewFile,BufRead *.bbcode,*.bbc set filetype=bbcode
au BufNewFile,BufRead *.io,*.iorc set filetype=io
au BufNewFile,BufRead *.nim set filetype=nimrod
au BufNewFile,BufRead *.glyph set filetype=glyph
+au BufNewFile,BufRead *.l set filetype=picolisp

0 comments on commit 867f9f7

Please sign in to comment.