suggestion for lexlib/restructuredtext.lcf about CJK head

Solved bugs are moved into this topic...
Post Reply
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

suggestion for lexlib/restructuredtext.lcf about CJK head

Post 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
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

patch applied, thanks.
Post Reply