AngaBlue / asm-formatter

A formatter extension for VSCode supporting the MIPS assembly language.
https://marketplace.visualstudio.com/items?itemName=AngaBlue.asm-formatter
GNU Lesser General Public License v3.0
11 stars 3 forks source link

Incorrect formatting with commas #6

Closed Priyansh4444 closed 1 week ago

Priyansh4444 commented 1 week ago

Describe the bug Incorrect formatting on the character literal ','

Unformatted File Paste the file here before running the formatter:

    li      $t4,            ','                            # comma

Formatted File Paste the file here after running the formatter:

    li      $t4,            ',              '               # comma

Expected Result Write an example of what you expect to receive:

    li      $t4,            ','               # comma
AngaBlue commented 1 week ago

Thanks for your bug report @Priyansh4444 . Looks like this is a simple fix as string literals were detected with double quotes not single quotes. This should be an easy fix.

AngaBlue commented 1 week ago

This issue is fixed in v1.2.10. Please let me know if you're still having issues with it though!