christianvoigt / argdown

a simple syntax for complex argumentation
https://argdown.org
923 stars 30 forks source link

argdown-vscode: punctuation breaks syntax highlighting #285

Closed masonlr closed 2 years ago

masonlr commented 3 years ago

I'm wanting to write sentences that have mentions in them. If you add punctuation after a mention then the highlighting breaks. For a reproducible example, take https://argdown.org/syntax/#pcs-statements from the docs and write in VS Code as:

[Intelligent Design]: The world seems
intelligently designed.

[God]: God exists.

<Teleological proof>

(1) [Intelligent Design]
(2) [Best Explanation]: The best
    explanation for why the world seems
    intelligently designed
    (cf. @[Intelligent Design]),
    is that _there is_ an
    intelligent being designing it.
-----
(3) **Some** intelligent being
    designing the world exists.
    {sources: [
        "Cleanthes"
    ]}
(4) The only intelligent being
    that could [design the world](https://en.wikipedia.org/wiki/Intelligent_design)
    is God. #deism
-----
(5) [God]

The mention @[Intelligent Design] isn't highlighted:

image

If you put a space after it, then we get highlighting:

image

christianvoigt commented 2 years ago

Fixed in the latest version of argdown-vscode.

masonlr commented 2 years ago

@christianvoigt, thanks!