From bd9da8a2dca9f8c6f631b467376870b40f7a4529 Mon Sep 17 00:00:00 2001 From: HSunboy Date: Mon, 8 Oct 2018 17:24:17 +0800 Subject: [PATCH] add comments --- lib/parser.js | 5 +++++ peg/autoComplete.pegjs | 0 2 files changed, 5 insertions(+) delete mode 100644 peg/autoComplete.pegjs diff --git a/lib/parser.js b/lib/parser.js index 3e72da9..89bfa65 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -38,6 +38,11 @@ function parseSyntax(sql, type) { return sqlSyntaxParser.parser.parseSyntax(sql1, sql2, type, false) } +/** + * 自动补全提示 + * @param {(string | array)} sql + * @param {string=} type + */ function parserSql(sql, type) { if (typeof type == "undefined") { type = "hive" diff --git a/peg/autoComplete.pegjs b/peg/autoComplete.pegjs deleted file mode 100644 index e69de29..0000000