package tm-grammars

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file tm_grammar_git_rebase.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
let lang_id = "git-rebase"
let json = {json|{
  "displayName": "Git Rebase Message",
  "name": "git-rebase",
  "patterns": [
    {
      "captures": {
        "1": {
          "name": "punctuation.definition.comment.git-rebase"
        }
      },
      "match": "^\\s*(#).*$\\n?",
      "name": "comment.line.number-sign.git-rebase"
    },
    {
      "captures": {
        "1": {
          "name": "support.function.git-rebase"
        },
        "2": {
          "name": "constant.sha.git-rebase"
        },
        "3": {
          "name": "meta.commit-message.git-rebase"
        }
      },
      "match": "^\\s*(pick|p|reword|r|edit|e|squash|s|fixup|f|drop|d)\\s+([0-9a-f]+)\\s+(.*)$",
      "name": "meta.commit-command.git-rebase"
    },
    {
      "captures": {
        "1": {
          "name": "support.function.git-rebase"
        },
        "2": {
          "patterns": [
            {
              "include": "source.shell"
            }
          ]
        }
      },
      "match": "^\\s*(exec|x)\\s+(.*)$",
      "name": "meta.commit-command.git-rebase"
    },
    {
      "captures": {
        "1": {
          "name": "support.function.git-rebase"
        }
      },
      "match": "^\\s*(b(?:reak|))\\s*$",
      "name": "meta.commit-command.git-rebase"
    }
  ],
  "scopeName": "text.git-rebase"
}|json}