{
  "$comment": "Copyright (c) 2025 Andre Bremer <hyperquader@gmail.com>, https://hyperquader.com. BSD-3-Clause, see LICENSE. Highlighting for Acue story files. The two name lists are docs/directives.json's names; acue/directives_test.odin fails when they differ. Prose lines get no scope: they are the content.",
  "name": "acue",
  "scopeName": "source.acue",
  "fileTypes": [],
  "patterns": [
    {
      "include": "#note-paragraph"
    },
    {
      "include": "#note-line"
    },
    {
      "include": "#directive"
    },
    {
      "include": "#unknown"
    }
  ],
  "repository": {
    "note-paragraph": {
      "begin": "^\\s*(--note)\\s*$",
      "beginCaptures": {
        "1": {
          "name": "punctuation.definition.comment.acue"
        }
      },
      "end": "^(?=\\s*$|\\s*--)",
      "name": "comment.block.acue"
    },
    "note-line": {
      "match": "^\\s*--note\\s.*$",
      "name": "comment.line.acue"
    },
    "directive": {
      "begin": "^\\s*(--(?:ambient-volume|segment-fade|join-pause|paragraphs|guidance|location|ambient|animate|caption|overlay|border|frames|height|volume|avoid|brief|image|panel|pause|photo|ratio|reset|scene|speak|speed|steps|style|title|video|voice|width|card|hold|note|seed|fps))(?=\\s|$)",
      "beginCaptures": {
        "1": {
          "name": "keyword.control.directive.acue"
        }
      },
      "end": "$",
      "patterns": [
        {
          "include": "#string"
        },
        {
          "match": "(?<=\\s)--(?:ambient-volume|segment-fade|join-pause|paragraphs|guidance|location|ambient|animate|caption|overlay|border|frames|height|volume|avoid|brief|image|panel|pause|photo|ratio|reset|scene|speak|speed|steps|style|title|video|voice|width|card|hold|note|seed|fps)(?=\\s|$)",
          "name": "variable.parameter.option.acue"
        },
        {
          "match": "(?<=\\s)--\\S*",
          "name": "invalid.illegal.unknown.acue"
        },
        {
          "match": "(?<=\\s)-?[0-9]+(?:\\.[0-9]+)?(?=\\s|$)",
          "name": "constant.numeric.acue"
        }
      ]
    },
    "unknown": {
      "match": "^\\s*(--\\S*)",
      "captures": {
        "1": {
          "name": "invalid.illegal.unknown.acue"
        }
      }
    },
    "string": {
      "begin": "\"",
      "end": "\"|$",
      "name": "string.quoted.double.acue"
    }
  }
}
