Sha256: 0ebd1b5ec391805a97d6f74b0d5c57f0283c6d00b30ab2e9211df685845cae46

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

{
  "fileTypes": [
    "user.js"
  ],
  "firstLineMatch": "// ==UserScript==",
  "foldingStartMarker": "// ==UserScript==",
  "foldingStopMarker": "// ==/UserScript==",
  "keyEquivalent": "^~G",
  "name": "Greasemonkey",
  "patterns": [
    {
      "match": "\\bunsafeWindow\\b",
      "name": "support.class.greasemonkey"
    },
    {
      "match": "\\bGM_(registerMenuCommand|xmlhttpRequest|setValue|getValue|log|openInTab|addStyle)\\b(?=\\()",
      "name": "support.function.greasemonkey"
    },
    {
      "begin": "// ==UserScript==",
      "end": "// ==/UserScript==\\s*",
      "name": "meta.header.greasemonkey",
      "patterns": [
        {
          "captures": {
            "1": {
              "name": "keyword.other.greasemonkey"
            },
            "3": {
              "name": "string.unquoted.greasemonkey"
            }
          },
          "match": "// (@(name|namespace|description|include|exclude))\\b\\s*(.+\\s+)?",
          "name": "meta.directive.standard.greasemonkey"
        },
        {
          "captures": {
            "1": {
              "name": "keyword.other.greasemonkey"
            },
            "3": {
              "name": "string.unquoted.greasemonkey"
            }
          },
          "match": "// (@(\\S+))\\b\\s*(.+\\s+)?",
          "name": "meta.directive.nonstandard.greasemonkey"
        }
      ]
    },
    {
      "include": "source.js"
    }
  ],
  "scopeName": "source.js.greasemonkey",
  "uuid": "B57ED36B-65DD-492A-82D7-E6C80253BAAB"
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ver-2009.12.14 config/syntax/Greasemonkey.json
ver-2009.11.29 config/syntax/Greasemonkey.json
ver-2009.11.28 config/syntax/Greasemonkey.json