Skip to content

Fix string literal support#28

Open
uunnii wants to merge 1 commit intobilibili:mainfrom
uunnii:fix-string-literal
Open

Fix string literal support#28
uunnii wants to merge 1 commit intobilibili:mainfrom
uunnii:fix-string-literal

Conversation

@uunnii
Copy link
Copy Markdown

@uunnii uunnii commented Sep 27, 2021

  1. Unquote string
  2. Using Golang string syntax
name = "ab\"c" // ab"c

name = "ab\u2333c" // ab⌳c

name = "ab\\u2333c" // ab\u2333c

name = "Hello, 世界" // Hello, 世界

name = "Hello, \u4e16\u754c" // Hello, 世界

name = "ab
c" // syntax error

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.

1 participant