Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 1.1: Added pipe continuation for script blocks.

  • Loading branch information...
commit 554968a0edc70f39396c5a48d2e8ed579db8d448 1 parent 0cf2c3b
@digitaltoad digitaltoad authored committed
Showing with 5 additions and 2 deletions.
  1. +4 −1 indent/jade.vim
  2. +1 −1  syntax/jade.vim
View
5 indent/jade.vim
@@ -2,7 +2,7 @@
" Language: Jade
" Maintainer: Joshua Borton
" Credits: Tim Pope (vim-jade)
-" Last Change: 2010 Aug 06
+" Last Change: 2010 Sep 22
if exists("b:did_indent")
finish
@@ -27,6 +27,9 @@ if !exists('g:jade_self_closing_tags')
let g:jade_self_closing_tags = 'meta|link|img|hr|br'
endif
+setlocal formatoptions+=r
+setlocal comments+=n:\|
+
function! GetJadeIndent()
let lnum = prevnonblank(v:lnum-1)
if lnum == 0
View
2  syntax/jade.vim
@@ -22,7 +22,7 @@ syn match jadeBegin "^\s*\%([<>]\|&[^=~ ]\)\@!" nextgroup=jadeTag,jadeClassCha
syn match jadeTag "\w\+\%(:\w\+\)\=" contained contains=htmlTagName,htmlSpecialTagName nextgroup=@jadeComponent
syn cluster jadeComponent contains=jadeAttributes,jadeIdChar,jadeClassChar,jadePlainChar
syn match jadeComment ' *\/\/.*$'
-syn region jadeAttributes matchgroup=jadeAttributesDelimiter start="(" skip=+\%(\\\\\)*\\'+ end=")$" contained contains=htmlArg,jadeAttributeString,htmlEvent,htmlCssDefinition nextgroup=@jadeComponent
+syn region jadeAttributes matchgroup=jadeAttributesDelimiter start="(" skip=+\%(\\\\\)*\\'+ end=")" contained contains=htmlArg,jadeAttributeString,htmlEvent,htmlCssDefinition nextgroup=@jadeComponent
syn match jadeClassChar "\." contained nextgroup=jadeClass
syn match jadeIdChar "#{\@!" contained nextgroup=jadeId
syn match jadeClass "\%(\w\|-\)\+" contained nextgroup=@jadeComponent
Please sign in to comment.
Something went wrong with that request. Please try again.