summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/syntax/vala.vim1
-rw-r--r--vimrc3
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/syntax/vala.vim b/vim/syntax/vala.vim
index 2fa194f..c8de41e 100644
--- a/vim/syntax/vala.vim
+++ b/vim/syntax/vala.vim
@@ -86,6 +86,7 @@ endif
syn region valaPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1
syn match valaPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>"
+" Comment if 0 blocks (ported from c.vim)
if !exists("vala_no_if0")
syn region valaCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=valaCppOut2 fold
syn region valaCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=valaSpaceError,valaCppSkip
diff --git a/vimrc b/vimrc
index 5c2e274..2dd4b75 100644
--- a/vimrc
+++ b/vimrc
@@ -64,8 +64,7 @@ au BufRead,BufNewFile *.vala setfiletype vala
au BufRead,BufNewFile *.vapi setfiletype vala
au BufRead,BufNewFile *.gtkaml setfiletype vala
let vala_comment_strings = 1
-let vala_comment_ifdef = 1
-"let vala_space_errors = 1
+let vala_space_errors = 1 " highlight space errors in vala code
" add support for subtitle files
au BufNewFile,BufRead *.ssa setf ssa