monotone

monotone Commit Details

Date:2012-02-19 19:55:16 (4 years 5 months ago)
Author:Richard Hopkins
Branch:net.venge.monotone
Commit:872cbbe65c64dd0e036dca178ea2e62242cf126c
Parents: 377d75d780a12a552941539f2e6a6e8d609fadb7
Message:Add basic_io syntax highlighting for Vim

Place the file inside your '~/.vim/syntax/'. You can then issue

:set filetype=basicio

anytime to enable syntax highlighting. Alternatively, you can use

au BufNewFile,BufRead {read,write}-permissions set filetype=basicio

inside '~/.vim/ftdetect/basicio.vim' to automatically enable syntax
highlighting for 'read-permissions' and 'write-permissions'.
Changes:
Acontrib/basicio.vim (full)

File differences

contrib/basicio.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
" Syntax highlighting for monotone basic_io format
" used by 'read-permissions', and 'write-permissions'
"
" Set up keywords and patterns we want to highlight
syn match basicIOSymbol /[a-z_]*/
syn region basicIOString start=+"+ skip=+\\\\\|\\"+ end=+"+
syn match basicIOHexID /\[[a-fA-F0-9]*\]/
" Set up sane default highlighting links, such as basicIOString->String
hi def link basicIOSymbolKeyword
hi def link basicIOStringString
hi def link basicIOHexIDIdentifier

Archive Download the corresponding diff file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status