1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Add a few simple evidence comments to the tokenizer. No functional changes.

FossilOrigin-Name: 0daec3099d439ce8a8779260b12975f262037bc8
This commit is contained in:
drh
2009-12-14 17:42:12 +00:00
parent c007646318
commit d3479b94e3
3 changed files with 22 additions and 10 deletions

View File

@@ -123,8 +123,9 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){
}
case '-': {
if( z[1]=='-' ){
/* IMP: R-15891-05542 -- syntax diagram for comments */
for(i=2; (c=z[i])!=0 && c!='\n'; i++){}
*tokenType = TK_SPACE;
*tokenType = TK_SPACE; /* IMP: R-22934-25134 */
return i;
}
*tokenType = TK_MINUS;
@@ -155,9 +156,10 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){
*tokenType = TK_SLASH;
return 1;
}
/* IMP: R-15891-05542 -- syntax diagram for comments */
for(i=3, c=z[2]; (c!='*' || z[i]!='/') && (c=z[i])!=0; i++){}
if( c ) i++;
*tokenType = TK_SPACE;
*tokenType = TK_SPACE; /* IMP: R-22934-25134 */
return i;
}
case '%': {