Giter VIP home page Giter VIP logo

Comments (3)

clason avatar clason commented on June 29, 2024

Please show the output of :InspectTree (use <details>!) and :Inspect on the particular block you don't see highlighted correctly. (And you can remove the :checkhealth output.)

If you see (ERROR) nodes in the output, that is an issue with the parser and needs to be reported there; nothing we can do about it.

from nvim-treesitter.

cpiber avatar cpiber commented on June 29, 2024

It produces quite a few error nodes, yes, the first is for the last ] in this: output_mem[unit][store_addr[unit]]. Not sure how I use <details>.

(ERROR ; [0, 0] - [18, 0]
  (module_header ; [0, 0] - [0, 11]
    (module_keyword) ; [0, 0] - [0, 6]
    (simple_identifier)) ; [0, 7] - [0, 11]
  (module_nonansi_header ; [0, 11] - [0, 13]
    (list_of_ports)) ; [0, 11] - [0, 13]
  (genvar_initialization ; [3, 7] - [3, 15]
    (genvar_identifier ; [3, 7] - [3, 11]
      (simple_identifier)) ; [3, 7] - [3, 11]
    (constant_expression ; [3, 14] - [3, 15]
      (constant_primary ; [3, 14] - [3, 15]
        (primary_literal ; [3, 14] - [3, 15]
          (integral_number ; [3, 14] - [3, 15]
            (decimal_number ; [3, 14] - [3, 15]
              (unsigned_number))))))) ; [3, 14] - [3, 15]
  (constant_expression ; [3, 17] - [3, 30]
    (constant_expression ; [3, 17] - [3, 21]
      (constant_primary ; [3, 17] - [3, 21]
        (parameter_identifier ; [3, 17] - [3, 21]
          (simple_identifier)))) ; [3, 17] - [3, 21]
    (constant_expression ; [3, 24] - [3, 30]
      (constant_primary ; [3, 24] - [3, 30]
        (primary_literal ; [3, 24] - [3, 30]
          (simple_text_macro_usage ; [3, 24] - [3, 30]
            (text_macro_identifier ; [3, 25] - [3, 30]
              (simple_identifier))))))) ; [3, 25] - [3, 30]
  (genvar_iteration ; [3, 32] - [3, 41]
    (genvar_identifier ; [3, 32] - [3, 36]
      (simple_identifier)) ; [3, 32] - [3, 36]
    (assignment_operator) ; [3, 37] - [3, 39]
    (constant_expression ; [3, 40] - [3, 41]
      (constant_primary ; [3, 40] - [3, 41]
        (primary_literal ; [3, 40] - [3, 41]
          (integral_number ; [3, 40] - [3, 41]
            (decimal_number ; [3, 40] - [3, 41]
              (unsigned_number))))))) ; [3, 40] - [3, 41]
  (always_keyword) ; [4, 4] - [4, 13]
  (event_control ; [4, 14] - [4, 28]
    (event_expression ; [4, 16] - [4, 27]
      (edge_identifier) ; [4, 16] - [4, 23]
      (expression ; [4, 24] - [4, 27]
        (primary ; [4, 24] - [4, 27]
          (simple_identifier))))) ; [4, 24] - [4, 27]
  (clockvar ; [5, 6] - [5, 16]
    (simple_identifier)) ; [5, 6] - [5, 16]
  (bit_select1 ; [5, 16] - [5, 22]
    (expression ; [5, 17] - [5, 21]
      (primary ; [5, 17] - [5, 21]
        (simple_identifier)))) ; [5, 17] - [5, 21]
  (expression ; [5, 23] - [6, 22]
    (expression ; [5, 23] - [5, 39]
      (primary ; [5, 23] - [5, 39]
        (simple_identifier) ; [5, 23] - [5, 33]
        (select1 ; [5, 33] - [5, 39]
          (bit_select1 ; [5, 33] - [5, 39]
            (expression ; [5, 34] - [5, 38]
              (primary ; [5, 34] - [5, 38]
                (simple_identifier))))))) ; [5, 34] - [5, 38]
    (ERROR) ; [5, 39] - [5, 40]
    (ERROR ; [5, 44] - [5, 61]
      (variable_lvalue ; [5, 44] - [5, 60]
        (simple_identifier) ; [5, 44] - [5, 54]
        (select1 ; [5, 54] - [5, 60]
          (bit_select1 ; [5, 54] - [5, 60]
            (expression ; [5, 55] - [5, 59]
              (primary ; [5, 55] - [5, 59]
                (simple_identifier))))))) ; [5, 55] - [5, 59]
    (expression ; [6, 6] - [6, 22]
      (primary ; [6, 6] - [6, 22]
        (simple_identifier) ; [6, 6] - [6, 16]
        (select1 ; [6, 16] - [6, 22]
          (bit_select1 ; [6, 16] - [6, 22]
            (expression ; [6, 17] - [6, 21]
              (primary ; [6, 17] - [6, 21]
                (simple_identifier)))))))) ; [6, 17] - [6, 21]
  (simple_identifier) ; [6, 26] - [6, 36]
  (constant_bit_select1 ; [6, 36] - [9, 58]
    (constant_expression ; [6, 37] - [6, 41]
      (constant_primary ; [6, 37] - [6, 41]
        (parameter_identifier ; [6, 37] - [6, 41]
          (simple_identifier)))) ; [6, 37] - [6, 41]
    (constant_expression ; [6, 43] - [6, 59]
      (constant_primary ; [6, 43] - [6, 59]
        (parameter_identifier ; [6, 43] - [6, 53]
          (simple_identifier)) ; [6, 43] - [6, 53]
        (constant_select1 ; [6, 53] - [6, 59]
          (constant_expression ; [6, 54] - [6, 58]
            (constant_primary ; [6, 54] - [6, 58]
              (parameter_identifier ; [6, 54] - [6, 58]
                (simple_identifier))))))) ; [6, 54] - [6, 58]
    (ERROR ; [6, 60] - [7, 16]
      (simple_identifier)) ; [7, 6] - [7, 16]
    (constant_expression ; [7, 17] - [7, 21]
      (constant_primary ; [7, 17] - [7, 21]
        (parameter_identifier ; [7, 17] - [7, 21]
          (simple_identifier)))) ; [7, 17] - [7, 21]
    (ERROR ; [7, 23] - [7, 33]
      (simple_identifier)) ; [7, 26] - [7, 33]
    (constant_expression ; [7, 34] - [7, 49]
      (constant_expression ; [7, 34] - [7, 42]
        (constant_primary ; [7, 34] - [7, 42]
          (parameter_identifier ; [7, 34] - [7, 42]
            (simple_identifier)))) ; [7, 34] - [7, 42]
      (constant_expression ; [7, 45] - [7, 49]
        (constant_primary ; [7, 45] - [7, 49]
          (parameter_identifier ; [7, 45] - [7, 49]
            (simple_identifier))))) ; [7, 45] - [7, 49]
    (ERROR ; [7, 50] - [8, 16]
      (simple_identifier)) ; [8, 6] - [8, 16]
    (constant_expression ; [8, 17] - [8, 21]
      (constant_primary ; [8, 17] - [8, 21]
        (parameter_identifier ; [8, 17] - [8, 21]
          (simple_identifier)))) ; [8, 17] - [8, 21]
    (ERROR ; [8, 23] - [8, 33]
      (simple_identifier)) ; [8, 26] - [8, 33]
    (constant_expression ; [8, 34] - [8, 49]
      (constant_expression ; [8, 34] - [8, 42]
        (constant_primary ; [8, 34] - [8, 42]
          (parameter_identifier ; [8, 34] - [8, 42]
            (simple_identifier)))) ; [8, 34] - [8, 42]
      (constant_expression ; [8, 45] - [8, 49]
        (constant_primary ; [8, 45] - [8, 49]
          (parameter_identifier ; [8, 45] - [8, 49]
            (simple_identifier))))) ; [8, 45] - [8, 49]
    (ERROR ; [8, 50] - [9, 17]
      (simple_identifier)) ; [9, 6] - [9, 17]
    (constant_expression ; [9, 18] - [9, 22]
      (constant_primary ; [9, 18] - [9, 22]
        (parameter_identifier ; [9, 18] - [9, 22]
          (simple_identifier)))) ; [9, 18] - [9, 22]
    (ERROR ; [9, 24] - [9, 37]
      (simple_identifier)) ; [9, 27] - [9, 37]
    (constant_expression ; [9, 38] - [9, 42]
      (constant_primary ; [9, 38] - [9, 42]
        (parameter_identifier ; [9, 38] - [9, 42]
          (simple_identifier)))) ; [9, 38] - [9, 42]
    (constant_expression ; [9, 44] - [9, 57]
      (constant_primary ; [9, 44] - [9, 57]
        (parameter_identifier ; [9, 44] - [9, 57]
          (simple_identifier)))))) ; [9, 44] - [9, 57]

The first time I tried it also produced an error that there is no parser, even though it clearly has one, unfortunately I haven't captured that, sorry.

Running Inspect on the block without highlighting errors saying there are no items at that position.

from nvim-treesitter.

clason avatar clason commented on June 29, 2024

Then the issue is indeed with the parser and needs to be fixed there (first).

from nvim-treesitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.