|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", |
| 3 | + "name": "Minecraft Project", |
| 4 | + "scopeName": "source.bc.minecraft.project", |
| 5 | + "patterns": [{ "include": "#keywords" }, { "include": "#operators" }, { "include": "#constants" }], |
| 6 | + "repository": { |
| 7 | + "keywords": { |
| 8 | + "patterns": [{ "name": "entity.name.type", "match": "^[a-z\\_\\.]+" }] |
| 9 | + }, |
| 10 | + "operators": { |
| 11 | + "patterns": [ |
| 12 | + { "name": "constant.character", "match": "[|!<>=?*;\\/\\-+:&]" }, |
| 13 | + { "name": "keyword.operator", "match": "[.,(){}\\[\\]\\=]" } |
| 14 | + ] |
| 15 | + }, |
| 16 | + "constants": { |
| 17 | + "patterns": [ |
| 18 | + { "name": "constant.numeric", "match": "\\b-\\d+\\b" }, |
| 19 | + { "name": "constant.numeric", "match": "\\b\\d+\\b" }, |
| 20 | + { "name": "keyword.control", "match": "(?<==)!" }, |
| 21 | + { "name": "keyword.control", "match": "\\.\\." }, |
| 22 | + { "name": "constant.character", "match": "\\b[Tt]rue\\b" }, |
| 23 | + { "name": "constant.character", "match": "\\b[Ff]alse\\b" }, |
| 24 | + { "name": "string.jade", "match": "\\b(?<=function )[a-z0-9/_]+\\b" }, |
| 25 | + { "name": "string.quoted.double.minecraft", "match": "'[^']*'" } |
| 26 | + ] |
| 27 | + } |
| 28 | + } |
| 29 | +} |
0 commit comments