tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error parsing prefixed string literal in function definition

fredrikekre opened this issue · comments

Source:

function foo(x::MIME"text/plain")
end

Playground:

function_definition [0, 0] - [1, 3]
  name: identifier [0, 9] - [0, 12]
  parameters: parameter_list [0, 12] - [0, 33]
    identifier [0, 13] - [0, 14]
    ERROR [0, 14] - [0, 32]
      prefixed_string_literal [0, 16] - [0, 32]
        prefix: identifier [0, 16] - [0, 20]

Hi. Do you think it is the same problem as #55 ?

I looked at that issue before posting this but that looks to be due to implicit multiplication (maybe the fix is the same though, not sure).