Skip to content

Broken syntax highlighting for @doc within enum #20

@brendanfalkowski

Description

@brendanfalkowski

Problem

Highlighting fails inside the enum declaration. Everything wants to be orange.

Screenshot

screen shot 2018-12-10 at 2 47 43 pm

Testing code

type ApprovalRequirements {
    approval_list_required: Boolean @doc(description: "Require approval if items are not in a list.")
    approval_subtotal: Float @doc(description: "Dollar amount. Theshold determined when 'Sometimes require approval' is set.")
    approver_id: ID @doc(description: "Entity ID of the user who approves.")
    requires_approval: RequiresApprovalEnum! @doc(description: "")
}

enum RequiresApprovalEnum @doc(description: "State for when approval is required, which determines approval conditions.") {
    ALWAYS @doc(description: "Always require approval")
    NEVER @doc(description: "Does not require approval")
    SOMETIMES @doc(description: "Sometimes require approval")
}

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