summaryrefslogtreecommitdiffstats
path: root/indent/qml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/qml.vim')
-rw-r--r--indent/qml.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/indent/qml.vim b/indent/qml.vim
index ea083707..18807a7a 100644
--- a/indent/qml.vim
+++ b/indent/qml.vim
@@ -4,7 +4,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1
" Language: QML
" Author: Robert Kieffer
" URL:
-" Last Change: 2010-03-27 (Happy Birthday, Dash!)
+" Last Change: 2017-10-27
"
" Improved JavaScript indent script.
@@ -22,10 +22,10 @@ if exists("*GetJsIndent")
finish
endif
-" Clean up a line of code by removing trailing '//' comments, and trimming
+" Clean up a line of code by removing trailing '//' and '/* */' comments, and trimming
" whitespace
function! Trim(line)
- return substitute(substitute(a:line, '// .*', '', ''), '^\s*\|\s*$', '', 'g')
+ return substitute(substitute(substitute(a:line, '// .*', '', ''), '/\* .* \*/', '', ''), '^\s*\|\s*$', '', 'g')
endfunction
function! GetJsIndent()