Kray-G / kinx

Looks like JavaScript, feels like Ruby, and it is a script language fitting in C programmers.
MIT License
240 stars 7 forks source link

It is failed to scan the comment of the `/* ... */` style when its end style is `**/`. #323

Closed Kray-G closed 3 years ago

Kray-G commented 3 years ago

It's failed with the following code.

var s = [1,2];
var x = 1;
/**
  This is a comment.
**/
System.println(s[x]);

The lexical analyzer is stuck as it cannot handle the end of the comment.