Skip to content

fix: support multiline comments and escape characters - #45

Open
QrackyDev wants to merge 1 commit into
Heapy:mainfrom
QrackyDev:main
Open

QrackyDev wants to merge 1 commit into
Heapy:mainfrom
QrackyDev:main

Conversation

@QrackyDev

Copy link
Copy Markdown

Overview

This pull request adds support for multiline comments and escape characters. If you wish for changes, let me know!

Changes

Before

With a multiline comment:

Code:

@YamlComment("""
        Testing
        multiline
""")
    val debug: Boolean = false

Output:

# 
        Testing
        multiline
    
debug: false

With escape characters:

Code:

@YamlComment("Cool\nint")
    val myInt: Int = 73

Output:

# Cool
int
myInt: 73

After

With a multiline comment:

Code:

@YamlComment("""
        Testing
        multiline
""")
val debug: Boolean = false

Output:

# Testing
# multiline
debug: false

With escape characters:

Code:

@YamlComment("Cool\nint")
val myInt: Int = 73

Output:

# Cool
# int
myInt:73

@QrackyDev QrackyDev changed the title Support multiline comments and escape characters fix: support multiline comments and escape characters Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant