* support inline /* */ comments
This commit is contained in:
parent
93898d3990
commit
f3a4877ce7
|
|
@ -211,13 +211,13 @@ skipspace:
|
||||||
|
|
||||||
// /* */ comments
|
// /* */ comments
|
||||||
if ( script.it[0] == '/' && script.it[1] == '*' ) {
|
if ( script.it[0] == '/' && script.it[1] == '*' ) {
|
||||||
if ( !crossline ) {
|
|
||||||
Error( "Line %i is incomplete\nFile location be: %s\n", scriptline, g_strLoadedFileLocation );
|
|
||||||
}
|
|
||||||
script.it += 2;
|
script.it += 2;
|
||||||
while ( script.it[0] != '*' || script.it[1] != '/' )
|
while ( script.it[0] != '*' || script.it[1] != '/' )
|
||||||
{
|
{
|
||||||
if ( *script.it == '\n' ) {
|
if ( *script.it == '\n' ) {
|
||||||
|
if ( !crossline ) {
|
||||||
|
Error( "Line %i is incomplete\nFile location be: %s\n", scriptline, g_strLoadedFileLocation );
|
||||||
|
}
|
||||||
script.line++;
|
script.line++;
|
||||||
scriptline = script.line;
|
scriptline = script.line;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user