diff options
author | Michael Muré <batolettre@gmail.com> | 2020-03-28 17:17:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 17:17:13 +0100 |
commit | 390e66eb2b3a7088cdb8a44eeaf384fe691daf4a (patch) | |
tree | 05386ddf08d7e1c2947a6fc6cf2fbd44efa19eaf /termui/termui.go | |
parent | 58abc6b0a35b679ac0c34579ff1cb53c8fa71af4 (diff) | |
parent | 314fcbb2293d869c33d6a76aedd148aedff6561d (diff) | |
download | git-bug-390e66eb2b3a7088cdb8a44eeaf384fe691daf4a.tar.gz |
Merge pull request #355 from MichaelMure/query-parser-ast
replace the all-in-one query parser by a complete one with AST/lexer/parser
Diffstat (limited to 'termui/termui.go')
-rw-r--r-- | termui/termui.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/termui/termui.go b/termui/termui.go index 1ef960de..96b7583c 100644 --- a/termui/termui.go +++ b/termui/termui.go @@ -12,6 +12,7 @@ import ( "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/input" + "github.com/MichaelMure/git-bug/query" ) var errTerminateMainloop = errors.New("terminate gocui mainloop") @@ -336,12 +337,12 @@ func editQueryWithEditor(bt *bugTable) error { bt.queryStr = queryStr - query, err := cache.ParseQuery(queryStr) + q, err := query.Parse(queryStr) if err != nil { ui.msgPopup.Activate(msgPopupErrorTitle, err.Error()) } else { - bt.query = query + bt.query = q } initGui(nil) |