Sha256: 66d4c198803190cdfe6ab2b2dfc994974c9b2d51844f42586697a04349403987

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 KB

Contents

{
  "fileTypes": [
    "ne"
  ],
  "name": "nearley",
  "patterns": [
    {
      "match": "@include|@builtin|@lexer",
      "name": "keyword.control.ne"
    },
    {
      "captures": {
        "1": {
          "name": "entity.name.type.ne"
        },
        "2": {
          "name": "variable.parameter.ne"
        },
        "3": {
          "name": "keyword.operator.ne"
        }
      },
      "match": "([\\w+?]+)(\\[.+\\])?\\s+((-|=)+>)"
    },
    {
      "match": "\\$[\\w+?]+",
      "name": "variable.parameter.ne"
    },
    {
      "match": "%[\\w+?]+",
      "name": "storage.type.ne"
    },
    {
      "match": "null",
      "name": "constant.language.ne"
    },
    {
      "begin": "([\\w+?]+\\[)",
      "captures": {
        "1": {
          "name": "entity.name.function"
        },
        "2": {
          "name": "entity.name.function"
        }
      },
      "end": "(\\])",
      "patterns": [
        {
          "include": "$self"
        }
      ]
    },
    {
      "match": "[\\w+?]+",
      "name": "entity.name.type.ne"
    },
    {
      "match": "(\\|)|(:\\+)|(:\\*)|(:\\?)|(\\()|(\\))",
      "name": "keyword.operator.ne"
    },
    {
      "begin": "#",
      "end": "\\n",
      "name": "comment.line.ne"
    },
    {
      "begin": "\\[",
      "end": "\\]",
      "name": "string.regex.ne",
      "patterns": [
        {
          "match": "\\\\.",
          "name": "constant.character.escape.ne"
        }
      ]
    },
    {
      "begin": "\"",
      "end": "\"",
      "name": "string.quoted.double.ne",
      "patterns": [
        {
          "match": "\\\\.",
          "name": "constant.character.escape.ne"
        }
      ]
    },
    {
      "begin": "(@?{%)",
      "captures": {
        "1": {
          "name": "comment.block.ne"
        },
        "2": {
          "name": "comment.block.ne"
        }
      },
      "end": "(%})",
      "patterns": [
        {
          "include": "source.js"
        }
      ]
    }
  ],
  "scopeName": "source.ne"
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github-linguist-5.3.3 grammars/source.ne.json
github-linguist-5.3.2 grammars/source.ne.json
github-linguist-5.3.1 grammars/source.ne.json
github-linguist-5.3.0 grammars/source.ne.json