summaryrefslogtreecommitdiffstats
path: root/source/core/slang-string.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-06-27 15:36:00 -0700
committerGitHub <noreply@github.com>2022-06-27 15:36:00 -0700
commitb7638b8fffe78ade657f361cadc08dffc8c10acf (patch)
treee27a141cfc6a9cc77356b8cba27b41c495d4ee27 /source/core/slang-string.cpp
parent62d16a23b0ecd72dc624abd7e10b373c40adaa90 (diff)
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 <yhe@nvidia.com>
Diffstat (limited to 'source/core/slang-string.cpp')
-rw-r--r--source/core/slang-string.cpp2
1 files changed, 1 insertions, 1 deletions
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))
{