This commit is contained in:
2025-10-11 09:53:30 +08:00
parent d58efb13e2
commit f850030d10
6 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
namespace Convention.RScript.Matcher
{
public class NamespaceMater : IRSentenceMatcher
{
public bool Match(string expression, ref RScriptSentence sentence)
{
if (expression == "{")
{
sentence.mode = RScriptSentence.Mode.EnterNamespace;
return true;
}
else if (expression == "}")
{
sentence.mode = RScriptSentence.Mode.ExitNamespace;
return true;
}
return false;
}
}
}