From d219055bc845253eff2b27d30a23b11b97b7ee9d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 19 Nov 2017 21:26:59 +0100 Subject: Update --- indent/qml.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indent/qml.vim') 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() -- cgit v1.2.3