summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
index 4f7c8756755..512e4d12162 100644
--- a/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
+++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
@@ -27,7 +27,8 @@ function add_comment(buffer)
local c = utf.byte(buffer, i)
local ct = tex.getcatcode(c)
local ctl = tex.getcatcode(13) -- endline character
- if ((ct==11) or (ct==12)) and (ctl==5) then
+ local ctc = tex.getcatcode(0xFFFFF) -- new comment character
+ if ((ct==11) or (ct==12)) and (ctl==5) and (ctc==14) then
local p = node_new(id_glyph)
p.char = c
if ltjc.is_ucs_in_japanese_char(p) then