Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 392
    • Issues 392
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !363

Add nested multiline comment support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Quinten Cabo requested to merge Quinten/sac2c:nested-multiline-comments into develop Mar 05, 2025
  • Overview 9
  • Commits 2
  • Changes 6

This MR adds support to the lexer for multiline nested comments.

/* /* Nested comment */ */

Why not?

This would have been useful when I was debbuging the Xoodoo code I was writing because I wanted to comment out parts of the file but those files already had doc strings. This feature makes it easy to quickly comment out a functions that have doc strings or multi line comments in them.

/*
/* Description of foo */
int foo() { return 0; }

/* Description of bar */
int bar() { return 0;}
*/ 

int main() { return 0; }
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: nested-multiline-comments