Skip to content

Conversation

@rickardp
Copy link
Contributor

See #1143. The single quoted literal (char literal) does not work when there is more than one literal char in the string, which could be true if there are escape sequences involved.

I copied the code from the double quoted literal (string literal) token and this resolves the issue I was seeing. I had to change the code slightly to make the ShouldNotFailOnIdentifyingCharactersAsToken test succeed, as it seems the lexer needs to support some broken input (I am not sure I captured the real intent of the test though).

I added a unit test to ScriptLexerTests to show the case. It should fail without the fix and succeed with the fix

@glennblock glennblock merged commit 2ed8e70 into scriptcs:dev Jan 3, 2017
@glennblock
Copy link
Contributor

Thanks!

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