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

OhmSHRuleParser errors on incomplete Smalltalk method #59

Open
stlutz opened this issue Mar 31, 2021 · 0 comments
Open

OhmSHRuleParser errors on incomplete Smalltalk method #59

stlutz opened this issue Mar 31, 2021 · 0 comments

Comments

@stlutz
Copy link

stlutz commented Mar 31, 2021

On a fresh subclass of OhmGrammarSmalltalkProxy, when writing the class-side serializedGrammar method, the error Error: ByteString called #basicNew: with invalid argument -1 is thrown once the text editor contains the following:

serializedGrammar
^ '

The error is caused because the following code always assumes the opening single quote to be closed in the end:

grammarSource := aString copyFrom: offset + 1 to: (aString findLast: [:c | c = $']) - 1.

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

No branches or pull requests

1 participant