cathaysia / tree-sitter-loongdoc

loongdoc(asciidoc) parser and grammar for tree-sitter https://cathaysia.github.io/tree-sitter-loongdoc/
https://tree-sitter-loongdoc.vercel.app
Apache License 2.0
13 stars 2 forks source link

Cannot escape braces in "stem" mode #9

Closed DrKGD closed 2 weeks ago

DrKGD commented 2 weeks ago

Seems like stem with latexmath cannot escape braces.

= Hello world

Normal text stem:[a + b = c]

Bad formula stem:[A = \{ a + b \}]
title0 [0, 0] - [2, 0]
  title_h0_marker [0, 0] - [0, 1]
  line [0, 2] - [1, 0]
section_block [2, 0] - [5, 0]
  paragraph [2, 0] - [5, 0]
    inline_macro [2, 12] - [2, 28]
      attr [2, 18] - [2, 27]
    ERROR [4, 12] - [5, 0]
      intrinsic_attributes [4, 24] - [5, 0]
    inline_macro [2, 12] - [2, 28]
      attr [2, 18] - [2, 27]
    ERROR [4, 12] - [5, 0]
      intrinsic_attributes [4, 24] - [5, 0]
    line [2, 0] - [3, 0]
      inline_macro [2, 12] - [2, 28]
        attr [2, 18] - [2, 27]
    line [4, 0] - [5, 0]
      ERROR [4, 12] - [5, 0]
        intrinsic_attributes [4, 24] - [5, 0]