From f51f69d045d9e0b83d9ab1f4623d4319ce1867be Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 30 Nov 2022 14:53:53 -0800 Subject: Fix missing semantic highlighting in attributes and ExtractExitentialValueExpr. (#2541) * Fix missing semantic highlighting in attributes and ExtractExitentialValueExpr. * Fix regression on partially specialized generic expr highlighting. * Add regression test. Co-authored-by: Yong He --- source/slang/slang-ast-support-types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-ast-support-types.cpp') diff --git a/source/slang/slang-ast-support-types.cpp b/source/slang/slang-ast-support-types.cpp index b550eaa68..aa0513569 100644 --- a/source/slang/slang-ast-support-types.cpp +++ b/source/slang/slang-ast-support-types.cpp @@ -57,9 +57,9 @@ Expr* getInnerMostExprFromHigherOrderExpr(Expr* expr) UnownedStringSlice getHigherOrderOperatorName(HigherOrderInvokeExpr* expr) { if (as(expr)) - return UnownedStringSlice("fwd_diff"); + return UnownedStringSlice("__fwd_diff"); else if (as(expr)) - return UnownedStringSlice("bwd_diff"); + return UnownedStringSlice("__bwd_diff"); return UnownedStringSlice(); } } -- cgit v1.2.3