tree-sitter / tree-sitter-html

HTML grammar for Tree-sitter
MIT License
136 stars 72 forks source link

rename attribute_value to unquoted_attribute_value etc #90

Open milahu opened 8 months ago

milahu commented 8 months ago

this makes my life easier when using this parser in an AST transformer

the problem is that currently, attribute_value has 2 meanings:

i want to process only the parent nodes attribute_value and quoted_attribute_value and ignore the child nodes: singlequote, doublequote, attribute_value

but currently, both parent and child nodes have the same node.kind_id

i propose to change this to

similar to #89

maybe

group the three attribute value types under one attribute_value

fixme

noval= bool is parsed as one attribute when it should be parsed as two attributes

fix: disallow whitespace between nodes

<hr doublequoted="val" singlequoted='val' unquoted=val noval= bool>