補完候補へ構文拡張キーワードfastを登録

このコミットが含まれているのは:
routersys committed 2026-07-05 17:26:28 +09:00
1 親 fb7614d6fb
コミット a6a9963c85
3ファイル変更
+10

検索条件に一致するファイルはありません

+3
ファイルの表示
@@ -11,6 +11,8 @@ namespace LuaScript.Tests
"repeat", "return", "then", "true", "until", "while"
];
private static readonly string[] SyntaxKeywords = ["fast"];
private static readonly string[] Globals =
[
"time", "frame", "totalframe", "framerate",
@@ -104,6 +106,7 @@ namespace LuaScript.Tests
private static string[] ExpectedStaticCandidates() =>
Keywords
.Concat(SyntaxKeywords)
.Concat(Globals)
.Concat(Namespaces.SelectMany(n => n.Members))
.Distinct()
+6
ファイルの表示
@@ -610,6 +610,12 @@ namespace LuaScript.Tests
Assert.Equal(2, diagnostic.Line);
}
[Fact]
public void Fast_KeywordIsRegisteredInCatalog()
{
Assert.Contains("fast", LuaScript.Compat.Syntax.LuaSyntaxRuleRegistry.CatalogKeywords);
}
[Fact]
public void Fast_RewritesInsideBlock()
{