Closed pardelapawel closed 4 years ago
Merging #347 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #347 +/- ##
=======================================
Coverage 84.38% 84.38%
=======================================
Files 49 49
Lines 6794 6794
=======================================
Hits 5733 5733
Misses 1061 1061
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update c6cd668...3ad2f0a. Read the comment docs.
In theory that should not be a problem in the ideal Vim, but indeed a good fix right now.
tl;dr
replaces any char matching
\W
to"u" . char2nr(_matched_char_)
when callinghighlight
which allows for decorated unicode todo keywordsWhen defining a face for todo keyword, the
highlight
command is used internally with the new keyword as a part of the new name.For example, when we want 'TODO' to be yellow we might define
For the above command
vim-orgmode
callsIf we were to define a new keyword that contains non-ASCII characters,
vim-orgmode
would try to use this non-ASCII word as a part of the highlight group name.With these keywords and faces:
vim reports this error 3 times:
Internally
vim-orgmode
tried to runWhat this commit introduces is a conversion from all
\W
to their"u" . char2nr()
representation.When this patch is applied the above highlight commands will change to:
and errors will disappear