Skip to content

Comments

Make lisp-compile-and-load-file ignore shebangs (#!)#1366

Merged
cxxxr merged 2 commits intolem-project:mainfrom
BierLiebHaber:main
May 16, 2024
Merged

Make lisp-compile-and-load-file ignore shebangs (#!)#1366
cxxxr merged 2 commits intolem-project:mainfrom
BierLiebHaber:main

Conversation

@BierLiebHaber
Copy link
Contributor

A small tweak to lisp-compile-and-load-file so it checks for and ignores a shebang at the start of the file.
Added so CIEL and other scripts can be run/debugged easier from lem.
If it detects #! at the start of the buffer it calls lisp-compile-region on the region of the buffer without the first line.

Is there is a better way to check for #! at the start of the file?

@cxxxr cxxxr merged commit 33ad42e into lem-project:main May 16, 2024
@cxxxr
Copy link
Member

cxxxr commented May 16, 2024

It's good.
Thank you!

@vindarel
Copy link
Collaborator

Very nice, thanks!

ciel-lang/CIEL#48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants