public override Verb CreateVerb(string[] tokens) { Color(position, length, IDEColor.EntityType.Structure); var parser = new AnyBlockParser(); var index = position + length; bool isMacro; result.Value = parser.Parse(source, ref index, false, out isMacro); overridePosition = index; MultiCapable = !parser.SingleLine; return(new NullOp()); }
public ThenParser() : base(@"^\s*\then\s*") { anyBlockParser = new AnyBlockParser(""); }
public AlternateLambdaParser() : base(@"^ /s* '\'") { variableParser = new VariableParser(); anyBlockParser = new AnyBlockParser(REGEX_LAMBDA_BRIDGE); }
public ClosureStemParser() { matcher = new Matcher(); blockParser = new AnyBlockParser(); }
public EndOfClosureParameterParser() : base(@"^\s*\)\s*=>\s*") { blockParser = new AnyBlockParser(); }
public LambdaParser2() { matcher = new Matcher(); blockParser = new AnyBlockParser(AnyBlockParser.REGEX_LAMBDA_BRIDGE); }
public ArrayParametersParser() : base("^ /s* '|('") { blockParser = new AnyBlockParser(REGEX_STANDARD_BRIDGE); }
public CaseParser() : base("^ /(/s* 'case' | 'required') /b") { anyBlockParser = new AnyBlockParser(REGEX_STANDARD_BRIDGE); }
public SignalParser() : base(@"^\s*(return|yield)\s+") { anyBlockParser = new AnyBlockParser(); }