Permalink
Browse files

detectindent: support for scala comments

  • Loading branch information...
avuserow committed Feb 16, 2009
1 parent f445bcf commit 48fbe30aeb3ba20422bb77f2f23b778b4cb078a1
Showing with 2 additions and 2 deletions.
  1. +2 −2 vim/plugin/detectindent.vim
@@ -21,7 +21,7 @@
fun! <SID>IsCommentStart(line)
" &comments isn't reliable
- if &ft == "c" || &ft == "cpp" || &ft == "java"
+ if &ft == "c" || &ft == "cpp" || &ft == "java" || &ft == "scala"
return -1 != match(a:line, '/\*')
elseif &ft == "perl" " catch POD in Perl
return -1 != match(a:line, '^=\w')
@@ -31,7 +31,7 @@ fun! <SID>IsCommentStart(line)
endfun
fun! <SID>IsCommentEnd(line)
- if &ft == "c" || &ft == "cpp" || &ft == "java"
+ if &ft == "c" || &ft == "cpp" || &ft == "java" || &ft == "scala"
return -1 != match(a:line, '\*/')
elseif &ft == "perl" " catch POD
return -1 != match(a:line, '^=cut')

0 comments on commit 48fbe30

Please sign in to comment.