diff options
author | kongo2002 <kongo2002@googlemail.com> | 2010-04-03 13:08:30 +0200 |
---|---|---|
committer | kongo2002 <kongo2002@googlemail.com> | 2010-04-03 13:08:30 +0200 |
commit | d36687c0dac5d000dfcb3054d3b7f04d6b61ff97 (patch) | |
tree | 0b149f550e83c097d104de9023e850a4efb920e6 | |
parent | 90b3dea197d910dbed902642b793c5ca808de943 (diff) |
add vim syntax based folding for uzbl config
-rw-r--r-- | examples/config/config | 2 | ||||
-rw-r--r-- | extras/vim/syntax/uzbl.vim | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/config/config b/examples/config/config index 504c7b8..f95c7fc 100644 --- a/examples/config/config +++ b/examples/config/config @@ -387,3 +387,5 @@ set default_mode = command # Set the "home" page. set uri = uzbl.org/doesitwork/@COMMIT + +# vim: set fdm=syntax: diff --git a/extras/vim/syntax/uzbl.vim b/extras/vim/syntax/uzbl.vim index 39f2495..b2153ef 100644 --- a/extras/vim/syntax/uzbl.vim +++ b/extras/vim/syntax/uzbl.vim @@ -44,7 +44,7 @@ syn match uzblTodo /TODO:/ contained syn region uzblComment display start=/^#/ end=/$/ contains=uzblTodo " Comment headings -syn region uzblSection display start=/^# ===/ end=/$/ +syn region uzblSec matchgroup=uzblSection start=/^# ===.*$/ end=/^# ===/me=e-5 contains=ALL fold syn region uzblSubSection display start=/^# ---/ end=/$/ " Integer and float matching |