Skip to content

Commit 8aaa52c

Browse files
committed
Fix semantic highlighting of output directives
1 parent 37c9203 commit 8aaa52c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/nextflow/lsp/services/script/ScriptSemanticTokensProvider.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,8 @@ protected void visitOutputBody(Statement body) {
194194
if( call == null )
195195
return;
196196

197-
var code = asDslBlock(call, 1);
198-
if( code != null ) {
199-
tok.append(call.getMethod(), SemanticTokenTypes.Parameter);
200-
tok.visit(code);
201-
}
197+
tok.append(call.getMethod(), SemanticTokenTypes.Function);
198+
tok.visit(call.getArguments());
202199
});
203200
}
204201

0 commit comments

Comments
 (0)