lassik / emacs-format-all-the-code

Auto-format source code in many languages with one command
https://melpa.org/#/format-all
MIT License
604 stars 105 forks source link

Adding formatter support for HLSL and AZSL #255

Closed xeechou closed 4 months ago

xeechou commented 4 months ago

HLSL is a popular C++ like shading language used in gaming industry.

AZSL (Amazon shading language) is a HLSL dialect used in o3de.

Both languages use very similar syntax to C++. This patch add the two languages support in format-all.

I have implemented both languages major mode in emacs.

lassik commented 4 months ago

Thank you.

HLSL is officially recognized by GitHub Linguist, so I added it to the language-id library. No _ needed.

Please also add "HLSL" and "_AZSL" to the :languages list inside (define-format-all-formatter clang-format ...).

xeechou commented 4 months ago

Hi, thanks. The MR is updated.

lassik commented 4 months ago

Thank you for the good work!