{
  "name": "domain-model",
  "scopeName": "source.domain-model",
  "fileTypes": [
    ".dmodel"
  ],
  "patterns": [
    {
      "include": "#comments"
    },
    {
      "name": "keyword.control.domain-model",
      "match": "\\b(datatype|entity|extends|many|package)\\b"
    }
  ],
  "repository": {
    "comments": {
      "patterns": [
        {
          "name": "comment.block.domain-model",
          "begin": "/\\*",
          "beginCaptures": {
            "0": {
              "name": "punctuation.definition.comment.domain-model"
            }
          },
          "end": "\\*/",
          "endCaptures": {
            "0": {
              "name": "punctuation.definition.comment.domain-model"
            }
          }
        },
        {
          "begin": "//",
          "beginCaptures": {
            "1": {
              "name": "punctuation.whitespace.comment.leading.domain-model"
            }
          },
          "end": "(?=$)",
          "name": "comment.line.domain-model"
        }
      ]
    }
  }
}
