Skip to content

Conversation

@kettek
Copy link

@kettek kettek commented Nov 25, 2025

With the current implementation, having negative numbers, such as "-9" or "-9.99" will not be parsed as numbers but rather as keywords. This adjustments properly sets the start of number parsing to include the sign.

@kettek
Copy link
Author

kettek commented Nov 25, 2025

Obviously the changes in commit ee2a4ae should be ignored.

Test cases maybe should be increased to check for strings such as keyword-1 and similar. I am not 100% that those would be parsed appropriately given my lack of familiarity with this codebase.

go.mod Outdated
@@ -1,4 +1,4 @@
module github.com/bzick/tokenizer
module github.com/kettek/tokenizer
Copy link
Owner

Choose a reason for hiding this comment

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

can you change back to github.com/bzick/tokenizer?

Copy link
Author

Choose a reason for hiding this comment

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

Done.

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