Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e9b5b5a
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
au BufRead,BufNewFile *.tumblr.html set filetype=tumblr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |