From adde2626720f23a5fd7151f6fb9109db14fc9263 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 13 Feb 2025 13:09:11 -0800 Subject: Fix modifier parsing. (#6347) * Fix modifier parsing. * Fix. * Fix. * Fix. --- source/slang/slang-lookup.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-lookup.cpp') diff --git a/source/slang/slang-lookup.cpp b/source/slang/slang-lookup.cpp index 9b9034c63..a2284eaa8 100644 --- a/source/slang/slang-lookup.cpp +++ b/source/slang/slang-lookup.cpp @@ -71,7 +71,11 @@ bool DeclPassesLookupMask(Decl* decl, LookupMask mask) { return (int(mask) & int(LookupMask::Attribute)) != 0; } - + // syntax declaration + else if (const auto syntaxDecl = as(decl)) + { + return (int(mask) & int(LookupMask::SyntaxDecl)) != 0; + } // default behavior is to assume a value declaration // (no overloading allowed) -- cgit v1.2.3