-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js-beautify adds a space between # and include #1114
Comments
The ignore directive might work: Please provide an example input, expected output and actual output. |
InputThe code looked like this before beautification:
Expected OutputThe code should have looked like this after beautification:
Actual OutputThe code actually looked like this after beautification:
Putting my includes between beautify preserve fixed the problem! I searched for a good hour but for some reason I missed beautify preserve. |
Note: the above is definitely not valid JavaScript, so it's not really a surprise that the beautifier doesn't handle it. Where can I find the spec for this language? |
Here you have all documented info about Extendscript:http://download.macromedia.com/pub/developer/aftereffects/scripting/JavaScript-Tools-Guide-CC.pdf |
I've pulled this into the next milestone. Getting the #include back is a minor change. |
I just ran this on v1.8.6 and the break has evolved. It no longer adds a space between the '#' and the 'include', now it inserts a newline:
|
I'm using js-beautify when coding for Adobe After Effects that uses Javascript. The problem is that when I write #include js-beautify changes it to # include and breaks the code.
Is there a way to ignore # signs or another way to fix this or will it need to be done in the source-code?
Thanks!
The text was updated successfully, but these errors were encountered: