lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Hi!
	? is a character character 

	print('?')
	--out
	unfinished string near ''?)'

	print(string.byte([[?]],1,2))
	-- out 
	179 92

	92 = '\\' so lua report error

	I add some code at the llex.c line 278
	  while (ls->current != del) {
	+  if (ls->current >= 128) {		//a chinese character
	+	  save_and_next(ls);
	+	  save_and_next(ls);
	+	  continue;}
	    switch (ls->current) {

	and it seems ok now . am I right ? or any better suggestion ?

mos