stsewd / tree-sitter-rst

reStructuredText grammar for tree-sitter
https://stsewd.dev/tree-sitter-rst/
MIT License
50 stars 7 forks source link

Add some similar non-ASCII punctuation characters #10

Closed SilverRainZ closed 3 years ago

SilverRainZ commented 3 years ago

According to Inline markup recognition rules:

Inline markup start-strings must start a text block or be immediately preceded by

  • whitespace,
  • one of the ASCII characters - : / ' " < ( [ {
  • or a similar non-ASCII punctuation character. [18]

Inline markup end-strings must end a text block or be immediately followed by

  • whitespace,
  • one of the ASCII characters - . , : ; ! ? \ / ' " ) ] } >
  • or a similar non-ASCII punctuation character. [19]

I dont know how to get all "similar non-ASCII punctuation character", so I only add some Chinese punctuation.