Page 1 of 1

suggestion for lexlib/restructuredtext.lcf about CJK head

Posted: 05.10.2022 14:39
by lookoutside
Cudatext can highlight the parsed rst head by using the bold font. But when come to cjk characters, it stop to work correctly.

If you encounter the same problem, please modify the lexlib/restructuredtext.lcf file. The location of the file is different according to you computer, please refer

https://wiki.freepascal.org/CudaText#Lo ... .27data.27

The modified restructuredtext.lcf is upload as attachment. Hope it will help you.
restructuredtext-cjk.lcf.zip
(10.31 KiB) Downloaded 40 times

Posted: 05.10.2022 15:10
by main Alexey
simple fixes are needed:

- \l is unicode word-char except '_', so instead of \l, write [\l_]
- \1{3,}} has trailing }} - one } is unneeded

I will fix that

Posted: 05.10.2022 15:25
by main Alexey
patch applied, thanks.