-
Notifications
You must be signed in to change notification settings - Fork 23
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
Tokenizer updates #317
Tokenizer updates #317
Conversation
duckdoom4
commented
Jun 1, 2023
•
edited
Loading
edited
- Split the atl patterns into it's own file
- Auto generate token files from language files
- Fixed a whole bunch of bugs in the tokenizer
- Tokenizer code should be a bit more readable now
- It's slower now, had to redo some parts to make it functional.
- I already have some ideas on how to speed it up a lot, but needs some more work.
- Had to add some temporary tokens for the python grammar file that should be changed later
- Fixed custom color injection code. (Fixes this comment from @FaceCrap)
Something is still causing the tokenizer to misalign when using the generated patterns. I'll try to fix it tomorrow
This is to match the behaviour of textmate, where the top most token is the last token added
This allows the end pattern of a range to extend based on the content pattern matches
Due to the way typescript initializes const object, we can't have circular references to patterns. To fix that, we just push all external dependencies in a shared file after all other files have been loaded.
Remove use of \G as javascript's regex engine doesn't support it Other fixes to make sure we can tokenize the python grammar file Change some renpy keyword to display as control flow keywords
61d42d9
to
a5f33cb
Compare
@LuqueDaniel Can we make it so this isn't checked on any
|
The workflow runs the |
Got it, fixed now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
Will add a special rule in our development area for displaying these in red