@mmmnt/feat-grammar 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -133,7 +133,7 @@ spec reads as structure.
133
133
  | `entity.name.type.schema.feat` | the schema name after `response` status, and after `with` |
134
134
  | `variable.other.service.feat`, `keyword.other.assertion.feat`, `entity.name.type.record.feat` | the service key; `has` and `contains`; the record type (`INSERT`, `OrderPlaced`, ...) |
135
135
  | `keyword.other.with.feat`, `keyword.other.ordering.feat` | `with`; `ordered`, `unordered` |
136
- | `support.function.matcher.feat`, `support.type.matcher.feat` | `any`, `matching`, `absent`, `not` (in a field's value position, ADR-0027), `equals fixture`; the `uuid`, `timestamp`, `string`, `number`, `boolean` qualifiers |
136
+ | `support.function.matcher.feat`, `support.type.matcher.feat` | `any`, `matching`, `absent`, `not` (in a field's value position, ADR-0027), `f32` and `sha256` (in the digest form, ADR-0030), `equals fixture`; the `uuid`, `timestamp`, `string`, `number`, `boolean` qualifiers |
137
137
  | `variable.language.stimulus-ref.feat` | `@when.email`, `@deliver[1].orderId`, `@payments[0].id` |
138
138
  | `variable.parameter.placeholder.feat` | outline placeholders such as `<email>` |
139
139
  | `string.quoted.double.feat`, `constant.numeric.feat` | string and number literals, including a response's status code |
@@ -104,6 +104,26 @@
104
104
  "name": "constant.language.status.feat"
105
105
  }
106
106
  }
107
+ },
108
+ {
109
+ "comment": "ADR-0033: the services this spec observes, each a service key",
110
+ "begin": "^(observes)(?=\\s|$)",
111
+ "beginCaptures": {
112
+ "1": {
113
+ "name": "keyword.declaration.feat"
114
+ }
115
+ },
116
+ "end": "$",
117
+ "patterns": [
118
+ {
119
+ "match": "[A-Za-z_][A-Za-z0-9_-]*",
120
+ "name": "variable.other.service.feat"
121
+ },
122
+ {
123
+ "match": ",",
124
+ "name": "punctuation.separator.comma.feat"
125
+ }
126
+ ]
107
127
  }
108
128
  ]
109
129
  },
@@ -295,6 +315,17 @@
295
315
  }
296
316
  }
297
317
  },
318
+ {
319
+ "match": "\\b(f32)[ \\t]+[0-9]+[ \\t]+(sha256)\\b(?=[ \\t]+\")",
320
+ "captures": {
321
+ "1": {
322
+ "name": "support.function.matcher.feat"
323
+ },
324
+ "2": {
325
+ "name": "support.function.matcher.feat"
326
+ }
327
+ }
328
+ },
298
329
  {
299
330
  "match": "\\b(equals fixture)\\b",
300
331
  "name": "support.function.matcher.feat"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmnt/feat-grammar",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "TextMate grammar for the .feat execution specification language — powers editor extensions, Shiki, and any TextMate-compatible highlighter",
5
5
  "type": "module",
6
6
  "main": "index.js",