Skip to content

Commit

Permalink
#232: updated lexer.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Aug 17, 2021
1 parent 9959b81 commit a729f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,12 @@ static int process_using(void)
while (pos < POSMAX && (kx_is_filechar(kx_lexinfo) || kx_lexinfo.ch == '*')) {
if (is_package) {
if (is_package_version == 0 && kx_lexinfo.ch == '.') {
kx_strbuf[pos] = 0;
pkgname = kx_const_str(g_parse_ctx, kx_strbuf + is_package_namepos);
pos = set_package_version(pkgname, pos);
is_package_version = 2;
} else if (is_package_version == 0 && kx_lexinfo.ch == '(') {
kx_strbuf[pos] = 0;
pkgname = kx_const_str(g_parse_ctx, kx_strbuf + is_package_namepos);
is_package_version = 1;
kx_strbuf[pos++] = PATH_DELCH;
Expand Down

0 comments on commit a729f1a

Please sign in to comment.