Skip to content

Add support for CMake bracket comment #2338

@gbellizio

Description

@gbellizio

It would be nice to support CMake bracket comment.
A bracket comment is a new style for comments introduced in CMake 3.0 that can be used for multiline comments. It's inspired by Lua opening long bracket (already supported by Pygments).

# inline CMake comment

#[[ multiline
CMake comment
]]
#[==[ another multiline
CMake comment
]==]

See documentation for comments and bracket argument for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions