nvim-neorg/tree-sitter-norg

Error inside code block

nilsonline opened this issue · 1 comments

When creating a java code block adding java anotations (starting with @) creates parsing error:

@code java
@MyAnnotation(name="someName",  value = "Hello World")
public class TheClass {
}

@end
ranged_tag [0, 0] - [5, 4]
  name: tag_name [0, 1] - [0, 5]
    tag_name_element [0, 1] - [0, 5]
  tag_parameters [0, 6] - [0, 10]
    parameter: tag_param [0, 6] - [0, 10]
  ERROR [1, 0] - [1, 1]
  content: ranged_tag_content [1, 1] - [5, 0]
    expression_statement [1, 1] - [1, 54]
      method_invocation [1, 1] - [1, 54]
        name: identifier [1, 1] - [1, 13]
        arguments: argument_list [1, 13] - [1, 54]
          assignment_expression [1, 14] - [1, 29]
            left: identifier [1, 14] - [1, 18]
            right: string_literal [1, 19] - [1, 29]
          assignment_expression [1, 32] - [1, 53]
            left: identifier [1, 32] - [1, 37]
            right: string_literal [1, 40] - [1, 53]
    class_declaration [2, 0] - [3, 1]
      modifiers [2, 0] - [2, 6]
      name: identifier [2, 13] - [2, 21]
      body: class_body [2, 22] - [3, 1]
  ranged_tag_end [5, 0] - [5, 4]

Hope this is the right place to report this issue!
Am fairly new to treesitter....

Please let me know if this is misplaced and should be reported somewhere else
(the project that handles the java parser definition for example).

This should be fixed now. Please update and re-open in case it still does not work 👍