Skip to content

\grammartermnc{} grammar terminal macro not converted #50

@lefticus

Description

@lefticus

Problem

The \grammartermnc{} macro (marking grammar terminals without code formatting) is not being converted. The raw LaTeX macro appears in a code example.

Affected Files

  • temp.md (1 instance)

Example

Line 961:
Actual:

T x = \grammartermnc{template-argument} ;

Expected:

T x = *template-argument* ;

(or similar italic/emphasized formatting for the grammar nonterminal)

Context

Grammar terminals and nonterminals in the C++ standard are typically rendered in:

  • Italic font for nonterminals
  • Monospace/code font for terminals
  • The nc suffix likely means "no code formatting"

Impact

Major - While only 1 instance, this appears in template syntax specification which is critical reference material. The unconverted macro makes the example harder to understand.

Fix Required

Add support for \grammartermnc{} macro in cpp-grammar.lua or cpp-macros.lua filter. Should convert to emphasized text (italic: *terminal*).

Related to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    macro-conversionLaTeX macro conversion issuemajorMajor priority issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions