From 61fe2301d09e709e3972b05bbe83340efee4282d Mon Sep 17 00:00:00 2001 From: zxin <15670465+ichordev@users.noreply.github.com> Date: Sat, 27 Apr 2024 01:25:23 +1000 Subject: [PATCH] [D] Remove variable.function.d from traits keywords/pragma identifiers --- D/D.sublime-syntax | 4 ++-- D/tests/syntax_test_d.d | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/D/D.sublime-syntax b/D/D.sublime-syntax index 5ca4ddf505..98adf67ac4 100644 --- a/D/D.sublime-syntax +++ b/D/D.sublime-syntax @@ -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 @@ -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 diff --git a/D/tests/syntax_test_d.d b/D/tests/syntax_test_d.d index 9dc25c0bdb..575057499c 100644 --- a/D/tests/syntax_test_d.d +++ b/D/tests/syntax_test_d.d @@ -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: @@ -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