Skip to content

Commit

Permalink
Add comments to keywords.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Dec 2, 2023
1 parent db046a6 commit 26f4640
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/parser/generate_keyword/genkeyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ package parser
// WARNING: This file is generated by 'genkeyword'
// KeywordsType defines the attributes of keywords
type KeywordsType struct {
Word string
Reserved bool
Section string
}
// Keywords is used for all keywords in TiDB
var Keywords = []KeywordsType{
`
fileEnd = `}
Expand Down
2 changes: 2 additions & 0 deletions pkg/parser/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ package parser

// WARNING: This file is generated by 'genkeyword'

// KeywordsType defines the attributes of keywords
type KeywordsType struct {
Word string
Reserved bool
Section string
}

// Keywords is used for all keywords in TiDB
var Keywords = []KeywordsType{
{"ADD", true, "reserved"},
{"ALL", true, "reserved"},
Expand Down

0 comments on commit 26f4640

Please sign in to comment.