elisp-tree-sitter icon indicating copy to clipboard operation
elisp-tree-sitter copied to clipboard

[javascript] Handle jsx nodes

Open danielpza opened this issue 4 years ago • 0 comments

<button className='primary' type='button'>
	Click Me
</button>;

<button />;
<Button />;

image

Expected button ~and Button to have the same color~ to have some color like Button does, and do some coloring to the properties className and type

debug:

program:
  expression_statement:
    jsx_element:
      jsx_opening_element:
        identifier:
        jsx_attribute:
          property_identifier:
          string:
        jsx_attribute:
          property_identifier:
          string:
      jsx_text:
      jsx_closing_element:
        identifier:
  expression_statement:
    jsx_self_closing_element:
      identifier:
  expression_statement:
    jsx_self_closing_element:
      identifier:

danielpza avatar Jan 05 '21 01:01 danielpza