DIGImend / hidrd

HID report descriptor I/O library and conversion tool
GNU General Public License v2.0
167 stars 29 forks source link

Indent values according to the descriptor structure #3

Closed ao2 closed 10 years ago

ao2 commented 10 years ago

It can be useful to indent the descriptor values according to the descriptor structure, i.e. if the comment is indented then the value is indented too in order give a more immediate visual clue about the the descriptor structure.

...
value,      /* usage page     */
value,      /* Collection     */
    value,  /*    Report ID   */
    ...
value,      /* End Collection */
...

Thanks, Antonio

spbnick commented 10 years ago

Antonio, @ao2, please check out latest master and see if code indenting works as you'd like it to. Thank you.

ao2 commented 10 years ago

The output is good, thanks a lot.