summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-support-types.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-30 14:53:53 -0800
committerGitHub <noreply@github.com>2022-11-30 14:53:53 -0800
commitf51f69d045d9e0b83d9ab1f4623d4319ce1867be (patch)
treea7c9cee36ef168810c8feed64edbe6a593ffb90d /source/slang/slang-ast-support-types.cpp
parent976f578585a4d4ed24e37d0c45a94a8e6afcff19 (diff)
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 <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-support-types.cpp')
-rw-r--r--source/slang/slang-ast-support-types.cpp4
1 files changed, 2 insertions, 2 deletions
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<ForwardDifferentiateExpr>(expr))
- return UnownedStringSlice("fwd_diff");
+ return UnownedStringSlice("__fwd_diff");
else if (as<BackwardDifferentiateExpr>(expr))
- return UnownedStringSlice("bwd_diff");
+ return UnownedStringSlice("__bwd_diff");
return UnownedStringSlice();
}
}