Skip to content

Support distinguishing different cases of math environment using different group #2467

@pilgrimlyieu

Description

@pilgrimlyieu

Use different groups for texMathZones to make it possible to distinguish them. See also #2397.

Here are currently supported cases (see :help vimtex-syntax-reference, table 3):

  GROUP                    DEFAULT        EXAMPLE
  ----------------------------------------------------------------------------
  texMathZone              Special        \( HERE \); \[ HERE \]
  texMathZoneX             texMathZone    $ HERE $
  texMathZoneXX            texMathZone    $$ HERE $$

Notice that we can't distinguish \( Inline Math \) and \[ Display Math \] through, since they are both texMathZone.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions