Julia-sublime icon indicating copy to clipboard operation
Julia-sublime copied to clipboard

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

Open Chunkulator opened this issue 6 years ago • 0 comments

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

Chunkulator avatar Mar 08 '18 03:03 Chunkulator