diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-08 15:57:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-08 15:57:00 -0700 |
| commit | 26a0b3e04689fee1ec9ec071eacd72faf1efe4eb (patch) | |
| tree | 35dc68c088d42c80055de81eaa9ca691496366a7 /source/slang/slang-language-server-ast-lookup.cpp | |
| parent | 26a7cf79526b86a3dff4084d42dde8f1a8c9ac1d (diff) | |
Fix attribute highlighting + language server crash. (#3198)
* Fix attribute highlighting + language server crash.
* Fix wave intrinsic.
* Fix.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-language-server-ast-lookup.cpp')
| -rw-r--r-- | source/slang/slang-language-server-ast-lookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-language-server-ast-lookup.cpp b/source/slang/slang-language-server-ast-lookup.cpp index 810315dd9..6c00312ba 100644 --- a/source/slang/slang-language-server-ast-lookup.cpp +++ b/source/slang/slang-language-server-ast-lookup.cpp @@ -684,8 +684,8 @@ bool _findAstNodeImpl(ASTLookupContext& context, SyntaxNode* node) if (attribute->getKeywordName() && _isLocInRange( &context, - attribute->getKeywordNameAndLoc().loc, - attribute->getKeywordName()->text.getLength())) + attribute->originalIdentifierToken.loc, + attribute->originalIdentifierToken.getContentLength())) { ASTLookupResult result; result.path = context.nodePath; |
