Skip to content

Conversation

@klokocka
Copy link

Basic crontab file format lexer (https://en.wikipedia.org/wiki/Cron).
Tested and working on my local computer.

@orbitalquark
Copy link
Owner

Thanks for starting on this! This lexer is written in the legacy format, so if you want this to be merge, you'll need to migrate it using the steps outlined here: https://orbitalquark.github.io/scintillua/api.html#migrating-legacy-lexers

The styles will probably be tricky. For the minutes, hours, etc., I would suggest you use tags like lex:tag(lexer.NUMBER .. '.minute'), lex:tag(lexer.NUMBER .. '.hour'), etc. Then theme files can add separate foreground colors for those categories should they choose to.

I can do a more thorough review once the migration is complete.

If you'd prefer not to put in the work, that's fine. We can just leave this PR up for anyone interested in using it as-is.

@klokocka
Copy link
Author

Updated and simplified...

@orbitalquark
Copy link
Owner

No, that migration does not look correct. If you used an LLM, I discovered they aren't very good following the migration steps :(

@jgarte
Copy link

jgarte commented Nov 23, 2025

No, that migration does not look correct. If you used an LLM, I discovered they aren't very good following the migration steps :(

How are LLMs today at following the migration steps? Maybe it just needs more context/RAG?

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