mbien commented on code in PR #8975:
URL: https://github.com/apache/netbeans/pull/8975#discussion_r2482224172


##########
java/java.editor.base/src/org/netbeans/modules/java/editor/base/semantic/SemanticHighlighterBase.java:
##########
@@ -1052,6 +1053,20 @@ public Void visitLiteral(LiteralTree node, Void p) {
             return super.visitLiteral(node, p);
         }
 
+        @Override
+        public Void visitImport(ImportTree node, Void p) {
+            int startPos = (int) 
info.getTrees().getSourcePositions().getStartPosition(info.getCompilationUnit(),
 node);
+
+            if (node.isModule()) {
+                tl.moveToOffset(startPos);

Review Comment:
   move `startPos` variable inside `if` block



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to