From 18ca0edcf540d5d1c7fa5c8bc6902ed0117270a2 Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Mon, 6 Jun 2016 14:51:12 -0700 Subject: [PATCH] Added support for scala comments. Scala supports c-style comments as well. --- plugin/detectindent.vim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/detectindent.vim b/plugin/detectindent.vim index d903948..2b8456c 100644 --- a/plugin/detectindent.vim +++ b/plugin/detectindent.vim @@ -16,7 +16,7 @@ " " to set a preferred indent level when detection is " " impossible: " :let g:detectindent_preferred_indent = 4 -" +" " " To use preferred values instead of guessing: " :let g:detectindent_preferred_when_mixed = 1 " @@ -32,7 +32,14 @@ if !exists('g:detectindent_verbosity') endif fun! HasCStyleComments() - return index(["c", "cpp", "java", "javascript", "php", "vala"], &ft) != -1 + return index(["c", + \ "cpp", + \ "java", + \ "javascript", + \ "php", + \ "vala", + \ "scala"], + \ &ft) != -1 endfun fun! IsCommentStart(line)