You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: URI in comment after shebang is syntax-highlighted until its argument. #23
Ah, this is due to #! being considered for block comments.. A space between the first and second lines would break the block. I haven't seen #! bang comments being used for mcfunction, interesting
@ritikshah, for a script file to be correctly interpretable as such in Linux-based OSes, especially when executable (chmod +x), it requires a shebang at the start of the file, denoted with the #! syntax. ECMAScript nowadays supports this, 1 and Python has always supported it, so it's not uncommon. Having xdg-open set as the default invoker allows it to be executable, but still be set to the OS or DE's default file-to-application association.
@ritikshah, for a script file to be correctly interpretable as such in Linux-based OSes, especially when executable (chmod +x), it requires a shebang at the start of the file, denoted with the #! syntax. ECMAScript nowadays supports this, 1 and Python has always supported it, so it's not uncommon. Having xdg-open set as the default invoker allows it to be executable, but still be set to the OS or DE's default file-to-application association.
Activity
beedell-roke commentedon Mar 6, 2025
It appears to reproduce on GitHub, too!
rx-dev commentedon Mar 6, 2025
Ah, this is due to
#!being considered for block comments.. A space between the first and second lines would break the block. I haven't seen#!bang comments being used for mcfunction, interestingrx-dev commentedon Mar 6, 2025
This might be Won't Fix but wondering if there are stronger opinions
beedell-roke commentedon Mar 7, 2025
@ritikshah, for a script file to be correctly interpretable as such in Linux-based OSes, especially when executable (
chmod +x), it requires a shebang at the start of the file, denoted with the#!syntax. ECMAScript nowadays supports this, 1 and Python has always supported it, so it's not uncommon. Havingxdg-openset as the default invoker allows it to be executable, but still be set to the OS or DE's default file-to-application association.Footnotes
github.com/tc39/proposal-hashbang↩rx-dev commentedon Apr 4, 2026
there's nothing to execute though?
Footnotes
github.com/tc39/proposal-hashbang↩beedell-roke commentedon Apr 4, 2026
@rx-dev, with
enable-rcon=true, it should be trivial to send to an active MC instance.