Revert "multiline comment by adam(gts@volconst.com)"
This reverts commit 783576d150.
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
# This is a comment
|
# This is a comment
|
||||||
# The dating in this tree is according to the Byzantine calendar but relative to Christ's birth
|
# The dating in this tree is according to the Byzantine calendar but relative to Christ's birth
|
||||||
|
|
||||||
/* This is a multiline
|
|
||||||
comment with a * and a / in it */
|
|
||||||
|
|
||||||
Adam
|
Adam
|
||||||
b: -5509.9.06 # Birthday in format yyyy.mm.dd
|
b: -5509.9.06 # Birthday in format yyyy.mm.dd
|
||||||
|
|
||||||
|
|||||||
@@ -567,30 +567,6 @@ namespace /* internal */
|
|||||||
--it;
|
--it;
|
||||||
break;
|
break;
|
||||||
/* case '0' ... '9': */
|
/* case '0' ... '9': */
|
||||||
case '/':
|
|
||||||
if(it+1<end)
|
|
||||||
{
|
|
||||||
if(it[1]=='/')
|
|
||||||
{
|
|
||||||
if(token_begin < it)
|
|
||||||
tokens.emplace_back(token_begin, it);
|
|
||||||
while(++it < end && *it != '\n'); /* skip comment */
|
|
||||||
token_begin = it;
|
|
||||||
--it;
|
|
||||||
}
|
|
||||||
else if(it[1]=='*')
|
|
||||||
{
|
|
||||||
if(token_begin < it)
|
|
||||||
tokens.emplace_back(token_begin, it);
|
|
||||||
while(++it < end)
|
|
||||||
if(*it=='*' && it+1<end && it[1]=='/')
|
|
||||||
break;
|
|
||||||
it+=2;
|
|
||||||
token_begin = it;
|
|
||||||
--it;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user