Skip to content

Conversation

@subyssurendran666
Copy link
Contributor

@subyssurendran666 subyssurendran666 commented Dec 10, 2025

What it does

Addresses the problem where curly brackets inside multi-line {@code} tags were not appearing with respective node elements in the AST view.

Fix: #4683

How to test

/**
 * Performs:
 * <pre>{@code
 *    for (String s : strings) {
 *        if (s.equals(value)) {
 *            return 0;
 *        }
 *        if (s.startsWith(value)) {
 *            return 1;
 *        }
 *    }
 *    return -1;
 * }</pre>
 */
public class Markdown {}

In the above snippet, the curly brackets inside the multiline @code tag are not represented in the AST view and are effectively eliminated.

Author checklist

@subyssurendran666 subyssurendran666 changed the title Multiline @code tag drops curly brackets in ast view 4683 Multiline @code Tag Drops Curly Brackets in AST View Dec 10, 2025
@subyssurendran666 subyssurendran666 force-pushed the Multiline_code_Tag_Drops_Curly_Brackets_in_AST_View_4683 branch from db6f54e to b7717c3 Compare December 10, 2025 13:05
@subyssurendran666 subyssurendran666 force-pushed the Multiline_code_Tag_Drops_Curly_Brackets_in_AST_View_4683 branch from b7717c3 to 3667a70 Compare December 14, 2025 11:31
@subyssurendran666 subyssurendran666 force-pushed the Multiline_code_Tag_Drops_Curly_Brackets_in_AST_View_4683 branch from 3667a70 to 6e1bd84 Compare December 18, 2025 17:44
@subyssurendran666 subyssurendran666 force-pushed the Multiline_code_Tag_Drops_Curly_Brackets_in_AST_View_4683 branch from 6e1bd84 to 9dd6766 Compare December 31, 2025 05:54
Copy link
Contributor

@mpalat mpalat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@subyssurendran666 subyssurendran666 force-pushed the Multiline_code_Tag_Drops_Curly_Brackets_in_AST_View_4683 branch from 9dd6766 to e09aac1 Compare January 13, 2026 03:25
The curly brackets inside the multiline @code tag are not represented in
the AST view and are effectively eliminated.

Fix: eclipse-jdt#4683
@subyssurendran666 subyssurendran666 force-pushed the Multiline_code_Tag_Drops_Curly_Brackets_in_AST_View_4683 branch from e09aac1 to 37a77fd Compare January 14, 2026 07:18
@subyssurendran666 subyssurendran666 merged commit a75a1f6 into eclipse-jdt:master Jan 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiline @code Tag Drops Curly Brackets in AST View

2 participants