Skip to content

Add Civet #873

Open
Open
@bbrk24

Description

@bbrk24

If you want an unsupported language added, provide:

  • language name: Civet
  • file extension(s): .civet, .cvt, .cvtx
  • method(s) of commenting text: Civet is a bit complicated here. Civet has two comment modes, with one triggered by a string directive at the top of the file -- think like JS "use strict";.
    By default, // is line comments and /* ... */ is block comments, like in JS. /// may start a line comment only at the top level of the file; inside an indented block, it serves as a multiline regex delimiter.
    In coffeeComment mode, which is triggered by "civet coffeeComment" or "civet coffeeCompat", the above comment styles don't work, and instead line comments are marked with #. Note that JS-style comments and "use strict" may occur before this directive (but no other code can).
    In both modes, ### ... ### is a valid block comment.

If it weren't for the CoffeeScript compatibility mode, this would be fairly easy for me to add myself.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions