|
1 | 1 | {
|
2 |
| - "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", |
| 2 | + "$schema": "https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json", |
3 | 3 | "repository": {
|
4 | 4 | "header": {
|
5 | 5 | "name": "keyword.other.header.robotframework",
|
|
71 | 71 | "patterns": [ { "include": "#variables" } ]
|
72 | 72 | },
|
73 | 73 | "comment": {
|
74 |
| - "name": "comment.robotframework", |
| 74 | + "name": "comment.block.robotframework", |
75 | 75 | "match": "(?:^ *|\\t+| {2,})(#.*)$",
|
76 | 76 | "captures": { "1": { "name": "comment.line.robotframework" } }
|
77 | 77 | },
|
78 | 78 | "setting": {
|
79 |
| - "contentName": "variable.parameter.argument.robotframework", |
| 79 | + "patterns": [ |
| 80 | + { "include": "#documentation_setting" }, |
| 81 | + { "include": "#other_setting" } |
| 82 | + ] |
| 83 | + }, |
| 84 | + "escape": { |
| 85 | + "patterns": [ |
| 86 | + { "include": "#escape-sequence-unicode" }, |
| 87 | + { "include": "#escape-sequence" } |
| 88 | + ] |
| 89 | + }, |
| 90 | + "documentation_setting": { |
| 91 | + "contentName": "markup.robotframework", |
| 92 | + "begin": "(?i)^(documentation|dokumentation|Tài liệu hướng dẫn)(?= {2}| ?\\t| ?$)", |
| 93 | + "beginCaptures": { "1": { "name": "keyword.control.settings.robotframework" } }, |
| 94 | + "end": "^(?!\\s*\\.\\.\\.)", |
| 95 | + "patterns": [ |
| 96 | + { "include": "#documentation_italic" }, |
| 97 | + { "include": "#documentation_bold" }, |
| 98 | + { "include": "#escape" }, |
| 99 | + { "include": "#comment" }, |
| 100 | + { "include": "#variables" }, |
| 101 | + { "include": "#line_continuation" } |
| 102 | + ] |
| 103 | + }, |
| 104 | + "documentation_bold": { |
| 105 | + "contentName": "markup.bold.documentation.robotframework", |
| 106 | + "begin": "\\*", |
| 107 | + "end": "\\*|$", |
| 108 | + "beginCaptures": { "0": { "name": "markup.robotframework" } }, |
| 109 | + "endCaptures": { "0": { "name": "markup.robotframework" } }, |
| 110 | + "patterns": [ |
| 111 | + { "include": "#documentation_italic" }, |
| 112 | + { "include": "#documentation_bold" }, |
| 113 | + { "include": "#escape" }, |
| 114 | + { "include": "#comment" }, |
| 115 | + { "include": "#variables" }, |
| 116 | + { "include": "#line_continuation" } |
| 117 | + ] |
| 118 | + }, |
| 119 | + "documentation_italic": { |
| 120 | + "contentName": "markup.italic.documentation.robotframework", |
| 121 | + "begin": "_", |
| 122 | + "end": "_|$", |
| 123 | + "beginCaptures": { "0": { "name": "markup.robotframework" } }, |
| 124 | + "endCaptures": { "0": { "name": "markup.robotframework" } }, |
| 125 | + "patterns": [ |
| 126 | + { "include": "#documentation_italic" }, |
| 127 | + { "include": "#documentation_bold" }, |
| 128 | + { "include": "#escape" }, |
| 129 | + { "include": "#comment" }, |
| 130 | + { "include": "#variables" }, |
| 131 | + { "include": "#line_continuation" } |
| 132 | + ] |
| 133 | + }, |
| 134 | + "other_setting": { |
| 135 | + "contentName": "string.unquoted.argument.robotframework", |
80 | 136 | "begin": "(?i)^(\\S+( \\S+)*)(?= {2}| ?\\t| ?$)",
|
81 | 137 | "beginCaptures": { "1": { "name": "keyword.control.settings.robotframework" } },
|
82 | 138 | "end": "^(?!\\s*\\.\\.\\.)",
|
|
88 | 144 | ]
|
89 | 145 | },
|
90 | 146 | "testcase_settings": {
|
91 |
| - "contentName": "variable.parameter.argument.robotframework", |
| 147 | + "patterns": [ |
| 148 | + { "include": "#documentation_testcase_settings" }, |
| 149 | + { "include": "#other_testcase_settings" } |
| 150 | + ] |
| 151 | + }, |
| 152 | + "documentation_testcase_settings": { |
| 153 | + "contentName": "markup.robotframework", |
| 154 | + "begin": "(?i)(\\[(documentation|dokumentation|Tài liệu hướng dẫn)\\])(?= {2}| ?\\t| ?$)", |
| 155 | + "beginCaptures": { "0": { "name": "keyword.control.settings.robotframework" } }, |
| 156 | + "end": "^(?!\\s*\\.\\.\\.)", |
| 157 | + "patterns": [ |
| 158 | + { "include": "#documentation_italic" }, |
| 159 | + { "include": "#documentation_bold" }, |
| 160 | + { "include": "#escape" }, |
| 161 | + { "include": "#comment" }, |
| 162 | + { "include": "#variables" }, |
| 163 | + { "include": "#line_continuation" } |
| 164 | + ] |
| 165 | + }, |
| 166 | + "other_testcase_settings": { |
| 167 | + "contentName": "string.unquoted.argument.robotframework", |
92 | 168 | "begin": "(\\[.*?\\])(?= {2}| ?\\t| ?$)",
|
93 | 169 | "beginCaptures": { "0": { "name": "keyword.control.settings.robotframework" } },
|
94 | 170 | "end": "^(?!\\s*\\.\\.\\.)",
|
|
0 commit comments