rmosolgo / language-graphql

GraphQL support for Atom text editor
MIT License
57 stars 13 forks source link

Broken syntax highlighting for @doc within enum #20

Open brendanfalkowski opened 5 years ago

brendanfalkowski commented 5 years ago

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