public override void EnterHtmlCloseTag([NotNull] TxMarkParser.HtmlCloseTagContext context) { AddTag(context.LESS_THAN().Symbol, Classify("HTML Tag Delimiter")); AddTag(context.SLASH().Symbol, Classify("HTML Tag Delimiter")); AddTag(context.word().WORD().Symbol, Classify("HTML Element Name")); AddTag(context.GREATER_THAN().Symbol, Classify("HTML Tag Delimiter")); }
/// <summary> /// Exit a parse tree produced by <see cref="TxMarkParser.htmlCloseTag"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitHtmlCloseTag([NotNull] TxMarkParser.HtmlCloseTagContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="TxMarkParser.htmlCloseTag"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitHtmlCloseTag([NotNull] TxMarkParser.HtmlCloseTagContext context) { return(VisitChildren(context)); }
public override void ExitHtmlCloseTag([NotNull] TxMarkParser.HtmlCloseTagContext context) { _compileContext.Pop(); _compileContext.PopTag(context.word().GetText()); }
public override void EnterHtmlCloseTag([NotNull] TxMarkParser.HtmlCloseTagContext context) { _compileContext.SetLocation(context.Start.Line, context.Start.Column); _compileContext.Push(CodeContextTypes.TagClose, context.word().GetText()); }