Skip to content

Commit

Permalink
[D] Remove variable.function.d from traits keywords/pragma identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ichordev committed Apr 26, 2024
1 parent 2402ada commit 61fe230
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 @@ -701,7 +701,7 @@ contexts:
pop: true
pragma-attribute:
- match: '\b({{pragmas}})\b'
scope: variable.function.d constant.other.d
scope: constant.other.d
set: pragma-in
- match: '\b({{name}})\b'
scope: variable.function.d
Expand Down Expand Up @@ -1199,7 +1199,7 @@ contexts:
scope: punctuation.section.parens.begin.d
set:
- match: '\b({{traits}})\b'
scope: variable.function.d constant.other.d
scope: constant.other.d
set:
- match: ','
scope: punctuation.separator.sequence.d
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 @@ -508,11 +508,11 @@ extern(1)
pragma(inline) pragma(mangle, "main"):
//^^^^^^ keyword.other.pragma.d
// ^ punctuation.section.parens.begin.d
// ^^^^^^ variable.function.d
// ^^^^^^ constant.other.d
// ^ punctuation.section.parens.end.d
// ^^^^^^ keyword.other.pragma.d
// ^ punctuation.section.parens.begin.d
// ^^^^^^ variable.function.d constant.other.d
// ^^^^^^ constant.other.d
// ^^^^^^ string.quoted.double.d
// ^ punctuation.section.parens.end.d
private:
Expand Down Expand Up @@ -2920,7 +2920,7 @@ extern(1)
// ^ punctuation.section.parens.begin.d
// ^^^^^^^^ keyword.other.d
// ^ punctuation.section.parens.begin.d
// ^^^^^^^^^ variable.function.d constant.other.d
// ^^^^^^^^^ constant.other.d
// ^ punctuation.separator.sequence.d
// ^^^^ variable.language.d
// ^ punctuation.separator.sequence.d
Expand Down

0 comments on commit 61fe230

Please sign in to comment.