You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
" Vim syntax file |
|
" Language: StarDict |
|
" Author: Matthew Urry |
|
" Created: Thu 16 Apr 2009 10:18:10 AM BST |
|
" Modified: Сбт 24 Июл 2010 15:15:08 |
|
|
|
if version < 600 |
|
syntax clear |
|
elseif exists("b:current_syntax") |
|
finish |
|
endif |
|
|
|
syn match tododone /DONE/ |
|
syn match todoinprogress /INPROGRESS/ |
|
syn match todotodo /TODO/ |
|
syn match tododate /\d\{2}\/\d\{2}\/\d\{2}/ |
|
syn region done start=/\*\*DONE/ end=/\*\*/ |
|
syn region inprogress start=/\*\*INPROGRESS/ end=/\*\*/ |
|
syn region matttodo start=/\*\*TODO/ end=/\*\*/ |
|
syn region majorpoint start=/==>/ end=/-->/me=s-3 contains=ALL |
|
syn match minorpoint /-->/ |
|
syn region todomodified start=/Modified:/ end=/$/ |
|
|
|
if !exists("did_todo_syntax_inits") |
|
let did_todo_syntax_inits = 1 |
|
hi link tododone tDone |
|
hi link done tDone |
|
hi default tDone ctermfg=DarkGreen guifg=DarkGreen |
|
hi link todoinprogress tProgress |
|
hi link inprogress tProgress |
|
hi default tProgress ctermfg=DarkYellow guifg=DarkYellow |
|
hi link todotodo tTodo |
|
hi link matttodo tTodo |
|
hi default tTodo ctermfg=White ctermbg=Red guifg=White guibg=Red |
|
hi link majorpoint tMajor |
|
hi default tMajor ctermfg=DarkMagenta guifg=DarkMagenta |
|
hi link minorpoint tMinor |
|
hi default tMinor ctermfg=DarkBlue guifg=DarkBlue |
|
hi link tododate tdate |
|
hi link todomodified tdate |
|
hi default tdate ctermfg=DarkRed guifg=DarkRed |
|
|
|
endif |
|
|
|
let b:current_syntax="todo" |
|
|
|
|