Sha256: 8919c996f2815815c4512f0cdb996887eee4a9fcf692b14984d05bfecc62a894

Contents?: true

Size: 1.44 KB

Versions: 20

Compression:

Stored size: 1.44 KB

Contents

{
  "fileTypes": [
    "ninja"
  ],
  "keyEquivalent": "^~N",
  "name": "Ninja",
  "patterns": [
    {
      "match": "^\\t+(?![#\\t]).*\\n?",
      "name": "invalid.illegal.tab-not-allowed-here.ninja"
    },
    {
      "match": "$[$: ]",
      "name": "constant.character.escape.ninja"
    },
    {
      "match": "\\b(build|rule|default)\\b",
      "name": "storage.type.$1.ninja"
    },
    {
      "match": "\\b(include|subninja)\\b",
      "name": "keyword.control.$1.ninja"
    },
    {
      "captures": {
        "1": {
          "name": "punctuation.definition.variable.ninja"
        }
      },
      "match": "(\\$)[a-zA-Z_][a-zA-Z0-9_]*",
      "name": "variable.other.normal.ninja"
    },
    {
      "captures": {
        "1": {
          "name": "punctuation.definition.variable.ninja"
        }
      },
      "match": "(\\$)\\{.*?\\}",
      "name": "variable.other.bracket.ninja"
    },
    {
      "begin": "^([ \\t]+)?(?=#)",
      "beginCaptures": {
        "1": {
          "name": "punctuation.whitespace.comment.leading.ninja"
        }
      },
      "end": "(?!\\G)",
      "patterns": [
        {
          "begin": "#",
          "beginCaptures": {
            "0": {
              "name": "punctuation.definition.comment.ninja"
            }
          },
          "end": "\\n",
          "name": "comment.line.number-sign.ninja"
        }
      ]
    }
  ],
  "scopeName": "source.ninja",
  "uuid": "012183BB-F02F-496D-9910-3B2504674FEC"
}

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
github-linguist-4.8.17 grammars/source.ninja.json
github-linguist-4.8.16 grammars/source.ninja.json
github-linguist-4.8.15 grammars/source.ninja.json
github-linguist-4.8.14 grammars/source.ninja.json
github-linguist-4.8.13 grammars/source.ninja.json
github-linguist-4.8.12 grammars/source.ninja.json
github-linguist-4.8.11 grammars/source.ninja.json
github-linguist-4.8.10 grammars/source.ninja.json
github-linguist-4.8.9 grammars/source.ninja.json
github-linguist-4.8.8 grammars/source.ninja.json
github-linguist-4.8.7 grammars/source.ninja.json
github-linguist-4.8.6 grammars/source.ninja.json
github-linguist-4.8.5 grammars/source.ninja.json
github-linguist-4.8.4 grammars/source.ninja.json
github-linguist-4.8.3 grammars/source.ninja.json
github-linguist-4.8.2 grammars/source.ninja.json
github-linguist-4.8.1 grammars/source.ninja.json
github-linguist-4.8.0 grammars/source.ninja.json
github-linguist-grammars-4.6.3 grammars/source.ninja.json
github-linguist-grammars-4.6.0 grammars/source.ninja.json