Sha256: b6fcba16d23401ad391d9a4d289addfa2cd9532710d4639ededa3dcc6a29738a

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
code_rippa-1.0.1 lib/code_rippa/syntax/greasemonkey.syntax
code_rippa-1.0.0 lib/code_rippa/syntax/greasemonkey.syntax