Skip to content

Conversation

@WolfGangS
Copy link
Contributor

@WolfGangS WolfGangS commented Dec 4, 2025

The firestorm preproc supports includes with the following format

#include <lib.lsl>

This pr adds support for that to allow for maximum compatibility with preexisting code.

Also includes test for said case.

Addresses part 1 of #32

Signed-off-by: WolfGangS <flamin2k8@gmail.com>
Copy link
Collaborator

@Rider-Linden Rider-Linden left a comment

Choose a reason for hiding this comment

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

I keep going back and forth on this... I'm tempted to suggest we add < and > into the LANGUAGE_CONFIGS in lexer.ts... but I'm not sure that's feasible.

@WolfGangS
Copy link
Contributor Author

WolfGangS commented Dec 4, 2025

It could be done as a "more involved" tokenizing check.

Really at that point you are moving on to the beginings of parsing into an ast

At some point I would like to do that, so that code optimizations can be run against the ast

Personally i think for now, this ads the compatibility with minimal changes.

If we upgrade from just streaming tokens to building a more advanced representation then this can be reevaluated.

@Rider-Linden Rider-Linden merged commit cc79b94 into secondlife:develop Dec 4, 2025
4 checks passed
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.

2 participants