|
3 | 3 | "name": "FGD", |
4 | 4 | "scopeName": "source.fgd", |
5 | 5 | "patterns": [ |
| 6 | + { "include": "#mapSize"}, |
| 7 | + { "include": "#autoVisgroup"}, |
6 | 8 | { "include": "#classDefinition" }, |
7 | 9 | { "include": "#helper"}, |
8 | 10 | { "include": "#classLabel" }, |
9 | 11 | { "include": "#body" }, |
10 | 12 | { "include": "source.kv#comment" } |
11 | 13 | ], |
12 | 14 | "repository": { |
| 15 | + "mapSize": { |
| 16 | + "begin": "(\\@(?i)mapsize(?-i))\\(", |
| 17 | + "beginCaptures": { |
| 18 | + "1": { "name": "constant.language.fgd" } |
| 19 | + }, |
| 20 | + "end": "\\)", |
| 21 | + "patterns": [ |
| 22 | + { "include": "source.kv#number" } |
| 23 | + ] |
| 24 | + }, |
| 25 | + "autoVisgroup": { |
| 26 | + "begin": "(\\@(?i)AutoVisgroup(?-i)) *(=)", |
| 27 | + "end": "(\\n)", |
| 28 | + "beginCaptures": { |
| 29 | + "1": { "name": "constant.language.fgd" }, |
| 30 | + "2": { "name": "keyword.operator.fgd" } |
| 31 | + }, |
| 32 | + "patterns": [ |
| 33 | + { "include": "source.kv#stringQuoted" } |
| 34 | + ] |
| 35 | + }, |
13 | 36 | "classDefinition": { |
14 | 37 | "match": "(\\@)(\\w+)", |
15 | 38 | "captures": { |
|
45 | 68 | ] |
46 | 69 | }, |
47 | 70 | "classLabel": { |
48 | | - "match": "(=) *([\\w_]+) *(:) *(\\\"[\\w ]+\\\")", |
| 71 | + "match": "(=) *([\\w_]+) *(:) *(\\\".*\\\")", |
49 | 72 | "captures": { |
50 | 73 | "1": { "name": "keyword.operator.fgd" }, |
51 | 74 | "2": { "name": "entity.name.function.fgd" }, |
|
59 | 82 | "end": "\\]", |
60 | 83 | "patterns": [ |
61 | 84 | { |
62 | | - "match": "(input|output)", |
| 85 | + "match": "(?i)(input|output)(?-i)", |
63 | 86 | "name": "storage.modifier" |
64 | 87 | }, |
| 88 | + { |
| 89 | + "match": "readonly", |
| 90 | + "name": "constant.language.fgd" |
| 91 | + }, |
65 | 92 | { "include": "#array" }, |
66 | 93 | { "include": "source.kv#comment" }, |
67 | 94 | { "include": "source.kv#number" }, |
|
71 | 98 | ] |
72 | 99 | }, |
73 | 100 | "keyvalueName": { |
74 | | - "begin": "\\w+", |
| 101 | + "begin": "(\\w+)\\(", |
75 | 102 | "beginCaptures": { |
76 | | - "0": { "name": "entity.name.function.fgd" } |
| 103 | + "1": { "name": "entity.name.function.fgd" } |
77 | 104 | }, |
78 | | - "end": "\\((\\w+)\\)", |
| 105 | + "end": "(\\w+)\\)", |
79 | 106 | "endCaptures": { |
80 | 107 | "1": { |
81 | 108 | "patterns": [ |
|
0 commit comments