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
Some syntax highlighters/lexers can use a shebang declaration at the top of a code file to help disambiguate multiple programming languages with the same file extension. Could we perhaps agree on a standard shebang to identify a berry file? I thought the following:
the regex: (?:#!.)berry(?:\d+(?:.\d+)?)?(?:\s) would match
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Some syntax highlighters/lexers can use a shebang declaration at the top of a code file to help disambiguate multiple programming languages with the same file extension. Could we perhaps agree on a standard shebang to identify a berry file? I thought the following:
the regex: (?:#!.)berry(?:\d+(?:.\d+)?)?(?:\s) would match
#!/berry
#!/berry1.01
#!/usr/bin/berry
#!/usr/local/bin/berry etc
So the line would need to start with #! and contain the word berry or berry1 or berry 1.1 etc.
NB - the shebang would be entirely optional, but IF present could be used by a lexer to identify the programming language.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions