Skip to content

Conversation

@MorphCodeBot
Copy link
Collaborator

This PR adds support for CMake multi-line bracket comments (#[[...]]) in the syntax highlighting.

Changes:

  • Updated the CMake language definition to properly handle bracket comments
  • Replaced simple HASH_COMMENT_MODE with comprehensive comment handling
  • Maintains existing single-line comment functionality

Technical Details:

  • Added support for comments starting with #[[ and ending with ]]
  • These comments can span multiple lines
  • Preserves the existing behavior for regular # single-line comments

Example:

#[[This is a
multi-line
bracket comment]]

Testing:

  • Verified using the provided test case
  • Confirmed proper highlighting of both single-line and multi-line comments
  • Ensured no regression in existing CMake syntax highlighting

Additional ticket processing details

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.

2 participants