補完候補へ構文拡張キーワードfastを登録
このコミットが含まれているのは:
3ファイル変更
+10
検索条件に一致するファイルはありません
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする