diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-11-19 21:26:59 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-11-19 21:27:05 +0100 |
commit | d219055bc845253eff2b27d30a23b11b97b7ee9d (patch) | |
tree | a4586dfdbce3a304759a0c34175ee41fdede4e17 /indent/qml.vim | |
parent | 0e9041f29a3288b6685aafc63d914c11fef539ba (diff) | |
download | vim-polyglot-d219055bc845253eff2b27d30a23b11b97b7ee9d.tar.gz vim-polyglot-d219055bc845253eff2b27d30a23b11b97b7ee9d.zip |
Update
Diffstat (limited to 'indent/qml.vim')
-rw-r--r-- | indent/qml.vim | 6 |
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() |