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

Update scanner to ignore command characters #2374

Merged
merged 1 commit into from
Dec 9, 2018

Conversation

hvacengi
Copy link
Member

@hvacengi hvacengi commented Dec 8, 2018

Fixes #2345

Because BOM is a command code, updating the scanner such that these codes are ignored as white space fixes the error when running a script with BOM, without having to actually modify file's contents.

kRISC.tpg

  • modify WHITESPACE token to include command codes
  • command codes are zero length, so they can safely be treated the same as white space

Scanner.cs

  • Update auto generated file

Fixes KSP-KOS#2345

kRISC.tpg
* modify WHITESPACE token to include command codes
* command codes are zero length, so they can safely be treated the same as white space

Scanner.cs
* Update auto generated file
@Dunbaratu Dunbaratu merged commit 57a6b9a into KSP-KOS:develop Dec 9, 2018
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.

kOS reading UTF-8 can't handle a file with a BOM in it.
2 participants