Skip to content
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

runtime: add PicoLisp filetype #14476

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nat-418
Copy link
Contributor

@nat-418 nat-418 commented Apr 10, 2024

This PR adds support for the PicoLisp programming language. PicoLisp exclusively uses the *.l filename extension, which is currently also used by Lex among several other extensions, so I have removed *.l from the Lex filename extensions and transferred it to PicoLisp.

runtime/filetype.vim Show resolved Hide resolved
@nat-418 nat-418 force-pushed the runtime-add-picolisp branch 3 times, most recently from 89906bf to 3901a62 Compare April 10, 2024 15:32
runtime/autoload/dist/ft.vim Outdated Show resolved Hide resolved
runtime/autoload/dist/ft.vim Outdated Show resolved Hide resolved
runtime/autoload/dist/ft.vim Show resolved Hide resolved
nat-418 and others added 2 commits April 10, 2024 19:21
Co-authored-by: dkearns <dougkearns@gmail.com>
Co-authored-by: dkearns <dougkearns@gmail.com>
@nat-418
Copy link
Contributor Author

nat-418 commented Apr 10, 2024

Thanks to @dkearns and @zeertzjq for guiding me through this PR.

@chrisbra
Copy link
Member

thanks, but tests still seem to fail.

@nat-418 nat-418 force-pushed the runtime-add-picolisp branch 3 times, most recently from 1ceb2df to c128fe7 Compare April 10, 2024 22:53
@chrisbra
Copy link
Member

chrisbra commented Apr 11, 2024

test still fails :/

Let me convert to draft and let me know once this is ready.

@chrisbra chrisbra marked this pull request as draft April 11, 2024 19:28
@nat-418 nat-418 force-pushed the runtime-add-picolisp branch 3 times, most recently from e177f08 to 40c0458 Compare April 13, 2024 20:34
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
exe "setf " .. g:filetype_l
return
endif
for i in range(1, line("$"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many filetype detection functions have a limit to the number of lines to check, like using range(1, min([line("$"), 100]))

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.

None yet

4 participants