Skip to content

Commit 2f2a29c

Browse files
committed
Fix Japanese highlight
help_ja.vim was not loaded after d5e6ad9. Also note that <sfile> is replaced with the function name when executing a function. It is different from when executing a script not inside a function.
1 parent d992124 commit 2f2a29c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ replace:
1111
html:
1212
rm -rf target/html
1313
mkdir -p target/html/doc
14-
cp -R syntax target/html
1514
cp doc/*.jax vim_faq/*.jax target/html/doc
16-
-cd target/html/doc ; vim --cmd "set rtp^=../../../tools" -eu ../../../tools/buildhtml.vim -c "qall!"
15+
-cd target/html/doc ; vim -eu ../../../tools/buildhtml.vim -c "qall!"
1716

1817
clean:
1918
rm -rf target

tools/buildhtml.vim

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ enew!
1111
source <sfile>:h/untranslated.vim
1212
source <sfile>:h/makehtml.vim
1313

14+
let s:tools_dir = expand('<sfile>:p:h')
15+
let s:proj_dir = expand('<sfile>:p:h:h')
16+
1417
function! s:main()
18+
" for the lastest help syntax
19+
let &runtimepath = s:tools_dir . ',' . &runtimepath
1520
" for ja custom syntax
16-
let &runtimepath .= ',' . expand('<sfile>:p:h')
21+
let &runtimepath .= ',' . s:proj_dir
1722
call s:BuildHtml()
1823
endfunction
1924

0 commit comments

Comments
 (0)