Sha256: 3f00d4e16425ba7e66e170bd4b862412319572d0e5f04f8e028a66bfb17bf4e1

Contents?: true

Size: 1.94 KB

Versions: 27

Compression:

Stored size: 1.94 KB

Contents

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
github-linguist-7.11.1 grammars/source.ne.json
github-linguist-7.10.0 grammars/source.ne.json
github-linguist-7.11.0 grammars/source.ne.json
github-linguist-7.9.0 grammars/source.ne.json
github-linguist-7.8.0 grammars/source.ne.json
github-linguist-7.7.0 grammars/source.ne.json
github-linguist-7.6.1 grammars/source.ne.json
github-linguist-7.6.0 grammars/source.ne.json
github-linguist-7.5.1 grammars/source.ne.json
github-linguist-7.5.0 grammars/source.ne.json
github-linguist-7.4.0 grammars/source.ne.json
github-linguist-7.3.1 grammars/source.ne.json
github-linguist-7.3.0 grammars/source.ne.json
github-linguist-7.2.0 grammars/source.ne.json
github-linguist-7.1.3 grammars/source.ne.json
github-linguist-7.1.2 grammars/source.ne.json
github-linguist-7.1.1 grammars/source.ne.json
github-linguist-7.1.0 grammars/source.ne.json
github-linguist-7.0.0 grammars/source.ne.json
github-linguist-6.4.1 grammars/source.ne.json