Closed sciencesakura closed 5 years ago
Thank you for the contribution! I've merged your commit but made a few changes:
1) Excluded ktDocTag
and ktDocTagParam
from the ktComplexInterpolation
region. Otherwise any whitespace followed by a non-whitespace in a string interpolation expression (" ... ${ abc } ... "
) was recognized as a kdoc tag parameter, and the string interpolation region apparently could not end because of it, which broke the highlighting completely.
2) Made @see
and @sample
kdoc tags accept a parameter too.
3) Simplified regexes somewhat.
I added a syntax highlighting for KDoc tags.