Sha256: a36c8b126b05dd410128f2ecdb623fc1e81ec2d71aa3961d871d51123a5adee0

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

{
  "scopeName": "text.shell-session",
  "name": "Shell Session",
  "fileTypes": [
    "sh-session"
  ],
  "patterns": [
    {
      "match": "^(>)(.*)$",
      "captures": {
        "1": {
          "name": "punctuation.separator.prompt.shell-session"
        },
        "2": {
          "name": "source.shell",
          "patterns": [
            {
              "include": "source.shell"
            }
          ]
        }
      }
    },
    {
      "match": "(?x) ^ (?: ( (?:\\(\\S+\\))? (?: | sh\\S*? | \\w+\\S+[@:]\\S+(?:\\s+\\S+)? | \\[\\S+[@:][^\\n]+\\].+ ) ) \\s* ) ( [$#%] ) \\s+ (.*) $",
      "captures": {
        "1": {
          "name": "entity.other.prompt-prefix.shell-session"
        },
        "2": {
          "name": "punctuation.separator.prompt.shell-session"
        },
        "3": {
          "name": "source.shell",
          "patterns": [
            {
              "include": "source.shell"
            }
          ]
        }
      }
    },
    {
      "match": "^.+$",
      "name": "meta.output.shell-session"
    }
  ]
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github-linguist-grammars-4.6.3 grammars/text.shell-session.json
github-linguist-grammars-4.6.0 grammars/text.shell-session.json