scope.cs

来自「Fireball.CodeEditor is an source code ed」· CS 代码 · 共 67 行

CS
67
字号
namespace Fireball.Syntax
{
	/// <summary>
	/// The Scope class defines what patterns starts and ends a BlockType
	/// </summary>
	public sealed class Scope
	{
		/// <summary>
		/// The Start trigger Pattern
		/// </summary>
		public Pattern Start = null;

		/// <summary>
		/// BlockType that should be started directly after this block have started
		/// </summary>
		public BlockType SpawnBlockOnStart = null;

		/// <summary>
		/// BlockType that should be started directly after this block have ended
		/// </summary>
		public BlockType SpawnBlockOnEnd = null;

		/// <summary>
		/// The owner BlockType
		/// </summary>
		public BlockType Parent = null;

		/// <summary>
		/// List of end patterns
		/// </summary>
		public PatternCollection EndPatterns = new PatternCollection();

		/// <summary>
		/// The style that should be applied to the start and end patterns
		/// </summary>
		public TextStyle Style = null;

		/// <summary>
		/// The text that should be displayed if the owner block is collapsed
		/// </summary>
		public string ExpansionText = "";

		/// <summary>
		/// Gets or Sets if this block should be expanded or collapsed by default
		/// </summary>
		public bool DefaultExpanded = true;

		/// <summary>
		/// Gets or Sets if the scope patterns is case sensitive
		/// </summary>
		public bool CaseSensitive = false;

		/// <summary>
		/// Gets or Sets if the scope patterns should be case normalized
		/// </summary>
		public bool NormalizeCase = true;

		public bool CauseIndent = false;

		/// <summary>
		/// 
		/// </summary>
		public Scope()
		{
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?