Skip to content

csEnclosed breaks highlighting in many cases #44

@idbrii

Description

@idbrii

csEnclosed breaks highlighting in lambdas passed into functions, comments inside if conditions, etc

Example C# code:

public static void MakeRequest(Action<Action<ErrorCode?>> request)
{
    if (
            // most likely
            IsValid()
            // also possible
            || IsEmergency())
    {
        request(err => {
            // Explanation for double action here. Unhighlighted except for word 'double'.
            if (Time.time < response_valid_until)
            {
                complete(err);
            }
        });
    }
}

Even adding csComment to csEnclosed's contains only fixes the comment. The if is still unhighlighted.

Looks like 0d9ebe2 added csEnclosed to allow something<ClassName>?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions