Skip to content

Commit

Permalink
Version 1.0: Initial upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Curry authored and vim-scripts committed Oct 21, 2012
0 parents commit e9b5b5a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README
@@ -0,0 +1,12 @@
This is a mirror of http://www.vim.org/scripts/script.php?script_id=4261

Syntax highlighting for Tumblr themes.

Screenshot: http://i.imgur.com/2IzwA.png
Source: https://github.com/liamcurry/tumblr.vim

By default it will highlight any files matching *.tumblr.html, but you can change this by adding this to your .vimrc (replace .tblr.html with whatever extension you like):

au BufRead,BufNewFile *.tblr.html set filetype=tumblr

Note: this is a fork of Liam Cooke's original version here: http://www.vim.org/scripts/script.php?script_id=3011. The main difference between the repositories is that this version is easily installable via pathogen or vundle, and it requires no changes to your .vimrc file.
1 change: 1 addition & 0 deletions ftdetect/tumblr.vim
@@ -0,0 +1 @@
au BufRead,BufNewFile *.tumblr.html set filetype=tumblr
6 changes: 6 additions & 0 deletions readme.md
@@ -0,0 +1,6 @@
Syntax highlighting for Tumblr themes.

Mostly borrowed from [here](https://github.com/inky/tumblr/tree/master/vim).
Seperated in order to make it easier to install with pathogen.

Filenames that match `*.tumblr.html` will be highlighted.
19 changes: 19 additions & 0 deletions syntax/tumblr.vim
@@ -0,0 +1,19 @@
" Vim syntax file
" Language: Tumblr HTML Theme
" Maintainer: Liam Cooke <liamcooke@gmail.com>
" URL: http://github.com/inky/tumblr/tree/master/vim/
" Last Change: 2010 Mar 10

runtime! syntax/html.vim
unlet b:current_syntax

syntax region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,tumblrTag

syntax match tumblrBlock '{/\?block:[A-Za-z0-9-]\+}' containedin=ALL
syntax match tumblrTag '{[A-Za-z0-9-:]\+}' containedin=ALL
syntax match tumblrTag '{[A-Za-z0-9-:]\+\( [A-Za-z0-9]\+="[A-Za-z0-9]\+"\)*}' containedin=ALL

hi def link tumblrBlock Label
hi def link tumblrTag Identifier

let b:current_syntax = "tumblr"

0 comments on commit e9b5b5a

Please sign in to comment.