Skip to content

Commit

Permalink
Julia: disable unknown kind temporarily
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Nov 23, 2020
1 parent 81ac50a commit 09796eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions Units/parser-julia.r/julia_test.d/expected.tags
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
Revise input.jl /^using Revise$/;" x
Normal input.jl /^import Distributions: Normal$/;" x
Random.randn input.jl /^using Random.randn$/;" x
Plots input.jl /^using Plots, Makie$/;" x
Makie input.jl /^using Plots, Makie$/;" x
a input.jl /^const a::Int = 'c' # struct Struct_wrong3 end$/;" c
test_macro input.jl /^macro test_macro() end$/;" m
test_fun input.jl /^function test_fun(a::Int, b::T) where #$/;" f
Expand Down
6 changes: 3 additions & 3 deletions parsers/julia.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef enum {
K_MODULE,
K_STRUCT,
K_TYPE,
K_IMPORT,
// K_IMPORT,
K_NONE
} JuliaKind;

Expand All @@ -56,7 +56,7 @@ static kindDefinition JuliaKinds [] = {
{ true, 'n', "module", "Modules" },
{ true, 's', "struct", "Structures" },
{ true, 't', "type", "Types" },
{ true, 'x', "unknown", "Imported name"}
// { true, 'x', "unknown", "Imported name"}
};

typedef enum {
Expand Down Expand Up @@ -1163,7 +1163,7 @@ static void parseImport (lexerState *lexer, vString *scope, int parent_kind)

while (lexer->cur_token == TOKEN_IDENTIFIER || lexer->cur_token == TOKEN_MACROCALL)
{
addTag(lexer->token_str, vStringValue(name), NULL, K_IMPORT, lexer->line, lexer->pos, scope, parent_kind);
// addTag(lexer->token_str, vStringValue(name), NULL, K_IMPORT, lexer->line, lexer->pos, scope, parent_kind);

skipWhitespace(lexer, false);
if (lexer->cur_c == ',')
Expand Down

0 comments on commit 09796eb

Please sign in to comment.