Skip to content

Commit

Permalink
move KW_CLEAR to unresolved keyword (#4118)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohaifei authored Apr 7, 2022
1 parent 27066cc commit 8202b54
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .linters/cpp/checkKeyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
'KW_ADD',
'KW_CREATE',
'KW_DROP',
'KW_CLEAR',
'KW_REMOVE',
'KW_IF',
'KW_NOT',
Expand Down
2 changes: 1 addition & 1 deletion scripts/nebula.service
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function status_daemon {
port=${GREEN}${port}${NC}
else
port=${BLINK}${RED}${port}${NC}
if [[$daemon_name == nebula-storaged]]; then
if [[ $daemon_name == nebula-storaged ]]; then
WARN "${daemon_name} after v3.0.0 will not start service until it is added to cluster."
WARN "See Manage Storage hosts:${RED}ADD HOSTS${NC} in https://docs.nebula-graph.io/"
fi
Expand Down
1 change: 1 addition & 0 deletions src/parser/parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ unreserved_keyword
| KW_MERGE { $$ = new std::string("merge"); }
| KW_DIVIDE { $$ = new std::string("divide"); }
| KW_RENAME { $$ = new std::string("rename"); }
| KW_CLEAR { $$ = new std::string("clear"); }
;

expression
Expand Down
2 changes: 1 addition & 1 deletion src/parser/scanner.lex
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ LABEL_FULL_WIDTH {CN_EN_FULL_WIDTH}{CN_EN_NUM_FULL_WIDTH}*
"ADD" { return TokenType::KW_ADD; }
"CREATE" { return TokenType::KW_CREATE;}
"DROP" { return TokenType::KW_DROP; }
"CLEAR" { return TokenType::KW_CLEAR; }
"REMOVE" { return TokenType::KW_REMOVE; }
"IF" { return TokenType::KW_IF; }
"NOT" { return TokenType::KW_NOT; }
Expand Down Expand Up @@ -308,6 +307,7 @@ LABEL_FULL_WIDTH {CN_EN_FULL_WIDTH}{CN_EN_NUM_FULL_WIDTH}*
"MERGE" { return TokenType::KW_MERGE; }
"RENAME" { return TokenType::KW_RENAME; }
"DIVIDE" { return TokenType::KW_DIVIDE; }
"CLEAR" { return TokenType::KW_CLEAR; }

"TRUE" { yylval->boolval = true; return TokenType::BOOL; }
"FALSE" { yylval->boolval = false; return TokenType::BOOL; }
Expand Down

0 comments on commit 8202b54

Please sign in to comment.