Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ichordev committed Apr 26, 2024
2 parents 61fe230 + e97e7ba commit 2842e33
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions D/D.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,7 @@ contexts:
- match: '}'
scope: punctuation.section.block.end.d
pop: true
- include: attribute-in
- match: '(?=\b({{name}})\b)'
push: enum-member
- include: not-whitespace-illegal
Expand Down
37 changes: 37 additions & 0 deletions D/tests/syntax_test_d.d
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,43 @@ extern(1)
1
//^ meta.enum.d invalid.illegal.d
}
enum Boo {
//^^^^^^^^^^^ meta.enum.d
//^^^^ keyword.declaration.enum.d
// ^^^ entity.name.enum.d
// ^ punctuation.section.block.begin.d
deprecated foo,
//^^^^^^^^^^^^^^^^ meta.enum.d
//^^^^^^^^^^ keyword.other.deprecated.d
// ^^^ entity.name.constant.d
// ^ punctuation.separator.sequence.d
@Test bar = 2,
//^^^^^^^^^^^^^^^ meta.enum.d
//^ punctuation.definition.annotation.begin.d
// ^^^^ meta.path.d storage.type.d
// ^^^ entity.name.constant.d
// ^ keyword.operator.assignment.d
// ^ meta.number.integer.decimal.d
// ^ punctuation.separator.sequence.d
deprecated( "Oops!" ) boo,
//^^^^^^^^^^^^^^^^^^^^^^^^^ meta.enum.d
//^^^^^^^^^^ keyword.other.deprecated.d
// ^ punctuation.section.parens.begin.d
// ^^^^^^^ string.quoted.double.d
// ^ punctuation.section.parens.end.d
// ^^^ entity.name.constant.d
// ^ punctuation.separator.sequence.d
@("Test") par = 2,
//^^^^^^^^^^^^^^^^^^^ meta.enum.d
//^ punctuation.definition.annotation.begin.d
// ^ punctuation.section.parens.begin.d
// ^^^^^^ string.quoted.double.d
// ^ punctuation.section.parens.end.d
// ^^^ entity.name.constant.d
// ^ keyword.operator.assignment.d
// ^ meta.number.integer.decimal.d
// ^ punctuation.separator.sequence.d
}
//^ meta.enum.d punctuation.section.block.end.d
enum Foo : int { a = 12 }
//^^^^^^^^^^^^^^^^^^^^^^^^^ meta.enum.d
Expand Down

0 comments on commit 2842e33

Please sign in to comment.