language-graphql icon indicating copy to clipboard operation
language-graphql copied to clipboard

Broken syntax highlighting for @doc within enum

Open brendanfalkowski opened this issue 6 years ago • 0 comments

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")
}

brendanfalkowski avatar Dec 10 '18 22:12 brendanfalkowski