Skip to content

Documenter strings containing LATex are broken e.g. doc""" $ latex here $ """ #71

@Chunkulator

Description

@Chunkulator

Test case:

# LATex in Documenter strings
  doc"""$\pi$"""
# ^^^^^^^^^^^^^^ string.quoted.other

Patch:

  strings:
    ...
    # Documenter string, tripple-quoted. Has special escaping and no string interpolation.
    - match: '\bdoc"""'
      push:
      - meta_scope: string.quoted.other.julia
      - match: (\\"|\\\\)
        scope: constant.character.escape.julia
      - match: '"""'
        pop: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions