Closed Andrew15-5 closed 11 months ago
Some more similar bugs. Same for bold.
Will try to highlight the errors as I did in #47
This version creates problems in texts like Sentence 1 @my_reference. Sentence 2.
. In this example, all texts from _reference
are highlighted as italic. Below is my current temporary fix on my machine:
syntax region typstMarkupItalicRegion
\ contained
\ matchgroup=typstMarkupItalicDelimiter start=/\(^\|[^0-9a-zA-Z]\)\@<=_/ end=/_\($\|[^0-9a-zA-Z]\)\@=/
\ concealends contains=typstMarkupLabel,typstMarkupBold,@Spell