Skip to content

Commit

Permalink
feat: add binary and string datatypes for hive
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-Q committed Mar 8, 2023
1 parent a94d8b8 commit 2132493
Show file tree
Hide file tree
Showing 5 changed files with 44,381 additions and 52,274 deletions.
9 changes: 5 additions & 4 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ module.exports = grammar({

keyword_boolean: _ => make_keyword("boolean"),
keyword_bit: _ => make_keyword("bit"),
keyword_binary: _ => make_keyword("binary"),

keyword_smallserial: _ => choice(make_keyword("smallserial"),make_keyword("serial2")),
keyword_serial: _ => choice(make_keyword("serial"),make_keyword("serial4")),
Expand Down Expand Up @@ -258,6 +259,7 @@ module.exports = grammar({
)
),
keyword_text: _ => make_keyword("text"),
keyword_string: _ => make_keyword("string"),
keyword_uuid: _ => make_keyword("uuid"),

keyword_json: _ => make_keyword("json"),
Expand Down Expand Up @@ -308,6 +310,7 @@ module.exports = grammar({
_type: $ => choice(
$.keyword_boolean,
$.bit,
$.keyword_binary,

$.keyword_smallserial,
$.keyword_serial,
Expand All @@ -327,6 +330,8 @@ module.exports = grammar({

$.char,
$.varchar,
$.numeric,
$.keyword_string,
$.keyword_text,

$.keyword_uuid,
Expand All @@ -348,10 +353,6 @@ module.exports = grammar({
$.keyword_box2d,
$.keyword_box3d,

$.char,
$.varchar,
$.numeric,

$.keyword_oid,
$.keyword_name,
$.keyword_regclass,
Expand Down
32 changes: 20 additions & 12 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2132493

Please sign in to comment.