From b7638b8fffe78ade657f361cadc08dffc8c10acf Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 27 Jun 2022 15:36:00 -0700 Subject: Language server fixes and improvements (#2304) * Language server: Inlay hints. * Signature help for base exprs that is not a declref. * Fix checking of jvp operator. * Fix. * Add clang-format based auto formatting. * Fix clang error. * Fix clang-format discovery logic. * Fine tune auto formatting and completion experience. * Update macos workflow. * Fixes to configurations. * Fix parser recovery to trigger completion for index exprs. * Typo fix. Co-authored-by: Yong He --- source/core/slang-string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/slang-string.cpp') diff --git a/source/core/slang-string.cpp b/source/core/slang-string.cpp index 9b3575ad8..03de07ee1 100644 --- a/source/core/slang-string.cpp +++ b/source/core/slang-string.cpp @@ -633,7 +633,7 @@ namespace Slang const char* chars = m_begin; const char firstChar = inChars[0]; - for (Int i = 0; i < len - inLen; ++i) + for (Int i = 0; i <= len - inLen; ++i) { if (chars[i] == firstChar && in == UnownedStringSlice(chars + i, inLen)) { -- cgit v1.2.3