Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 1.0: Initial upload

  • Loading branch information...
commit e9b5b5a340b128edf4dde9561994f0122c1d469c 0 parents
@liamcurry liamcurry authored committed
Showing with 38 additions and 0 deletions.
  1. +12 −0 README
  2. +1 −0  ftdetect/tumblr.vim
  3. +6 −0 readme.md
  4. +19 −0 syntax/tumblr.vim
12 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  ftdetect/tumblr.vim
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.tumblr.html set filetype=tumblr
6 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 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"
Please sign in to comment.
Something went wrong with that request. Please try again.