Sha256: aa64c768d4fd7f9d666f85eeffe4422f43ac05e5056063a8036b7a1628322b82

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

{
  "comment": "\n    Robot Framework syntax highlighting for txt files.\n    ",
  "fileTypes": [
    "txt"
  ],
  "keyEquivalent": "^~R",
  "name": "Robot Framework .txt",
  "patterns": [
    {
      "begin": "(?i)^\\*+\\s*(settings?|metadata|(user )?keywords?|test ?cases?|variables?)",
      "comment": "start of a table",
      "end": "$",
      "name": "string.robot.header"
    },
    {
      "begin": "(?i)^\\s*\\[?Documentation\\]?",
      "end": "^(?!\\s*+\\.\\.\\.)",
      "name": "comment"
    },
    {
      "comment": "testcase settings",
      "match": "(?i)\\[(Arguments|Setup|Teardown|Precondition|Postcondition|Template|Return|Timeout)\\]",
      "name": "storage.type.method.robot"
    },
    {
      "begin": "(?i)\\[Tags\\]",
      "comment": "test tags",
      "end": "^(?!\\s*+\\.\\.\\.)",
      "name": "storage.type.method.robot",
      "patterns": [
        {
          "match": "^\\s*\\.\\.\\.",
          "name": "comment"
        }
      ]
    },
    {
      "match": "\\b([0-9]*(\\.[0-9]+)?)\\b",
      "name": "constant.numeric.robot"
    },
    {
      "begin": "((?<!\\\\)|(?<=\\\\\\\\))[$@%]\\{",
      "comment": "${variables}. one backslash escapes the variable, two do not",
      "end": "\\}",
      "name": "entity.name.class",
      "patterns": [
        {
          "include": "$self"
        },
        {
          "match": ".",
          "name": "entity.name.class"
        }
      ]
    },
    {
      "begin": "(^| {2,}|\t|\\| {1,})(?<!\\\\)#",
      "end": "$",
      "name": "comment.robot"
    },
    {
      "begin": "(^[^ \\t\\*\\n\\|]+)|((?<=^\\|)\\s+[^ \\t\\*\\n\\|]+)",
      "end": "(?=\\s{2})|\\t|$|\\s+(?=\\|)",
      "name": "keyword.control.robot"
    },
    {
      "match": "(?i)^\\s*(Given|And|Then|When|But)",
      "name": "keyword.control.robot"
    }
  ],
  "scopeName": "text.robot",
  "uuid": "E54BFAB1-E5A0-4524-9FFC-FC08B20F21E4"
}

Version data entries

2 entries across 2 versions & 1 rubygems

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