Skip to content

Swift support #13

Closed
Closed
@regexident

Description

This looks like a very cool tool! Congrats!

Would love to give it a ride with Swift.

Comments in Swift are very similar to comments in C. Single-line comments begin with two forward-slashes (//):

// This is a comment.

Multiline comments start with a forward-slash followed by an asterisk (/) and end with an asterisk followed by a forward-slash (/):

/* This is also a comment
but is written over multiple lines. */

Unlike multiline comments in C, multiline comments in Swift can be nested inside other multiline comments. You write nested comments by starting a multiline comment block and then starting a second multiline comment within the first block. > The second block is then closed, followed by the first block:

/* This is the start of the first multiline comment.
/* This is the second, nested multiline comment. */
This is the end of the first multiline comment. */

Nested multiline comments enable you to comment out large blocks of code quickly and easily, even if the code already > contains multiline comments.

Reference

The file extension of Swift source files is .swift.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions