OSDN Git Service

Merge branch 'kitagawa_test' of git.sourceforge.jp:/gitroot/luatex-ja/luatexja into...
[luatex-ja/luatexja.git] / src / ltj-inputbuf.lua
index fdf9dc8..cec74cf 100644 (file)
@@ -30,7 +30,7 @@ local function add_comment(buffer)
    end
    if i>0 then
       local c = utfbyte(buffer, i)
-      if c>0x80 then
+      if c>=0x80 then
         local ct = getcatcode(c)
         local te = tex.endlinechar
         local ctl = (te ~= -1) and (getcatcode(te)==5) and (getcatcode(0xFFFFF)==14)
@@ -47,4 +47,7 @@ local function add_comment(buffer)
    return buffer
 end
 
+luatexbase.add_to_callback('process_input_buffer',
+   add_comment,'ltj.process_input_buffer')
+
 --EOF