Skip to content

Commit

Permalink
[D] Rename mapping separator scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Mar 13, 2022
1 parent f8a5ded commit 9e3a1a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions D/D.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ contexts:
- match: '\b({{name}})\s*(:)'
captures:
1: variable.other.d
2: punctuation.separator.mapping.key-value.d
2: punctuation.separator.key-value.d
set: value
- include: value-no-mapping-key
value-no-mapping-key:
Expand Down Expand Up @@ -1518,7 +1518,7 @@ contexts:
set: [value-array-list-after, value]
value-array-list-after:
- match: ':'
scope: punctuation.separator.mapping.key-value.d
scope: punctuation.separator.key-value.d
set: [value-array-list-after-value, value]
- include: value-array-list-after-value
value-array-list-after-value:
Expand Down
6 changes: 3 additions & 3 deletions D/tests/syntax_test_d.d
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,7 @@ extern(1)
// ^ punctuation.section.brackets.begin.d
1: 2,
//^ meta.number.integer.decimal.d
// ^ punctuation.separator.mapping.key-value.d
// ^ punctuation.separator.key-value.d
// ^ meta.number.integer.decimal.d
// ^ punctuation.separator.sequence.d
"foo",
Expand Down Expand Up @@ -3090,13 +3090,13 @@ extern(1)
// ^ meta.number.integer.decimal.d
// ^ punctuation.separator.sequence.d
// ^ variable.other.d
// ^ punctuation.separator.mapping.key-value.d
// ^ punctuation.separator.key-value.d
// ^^^^ meta.string.d string.quoted.double.d
// ^ punctuation.separator.sequence.d
c: 5.sqrt(12) }.foo();
// ^^^^^^^^^^^^^^^ meta.block.d
// ^ variable.other.d
// ^ punctuation.separator.mapping.key-value.d
// ^ punctuation.separator.key-value.d
// ^ meta.number.integer.decimal.d
// ^ meta.path.d punctuation.accessor.dot.d
// ^^^^ meta.function-call.d meta.path.d variable.function.d
Expand Down

0 comments on commit 9e3a1a1

Please sign in to comment.