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

Comments with Chinese characters are discarded #39

Closed
tony-song opened this issue Mar 31, 2023 · 0 comments
Closed

Comments with Chinese characters are discarded #39

tony-song opened this issue Mar 31, 2023 · 0 comments

Comments

@tony-song
Copy link

tony-song commented Mar 31, 2023

Dear maintainers,

When using the parser, I find that sometimes comments with Chinese characters are silently discarded.
Below is Lua code which can be used to reproduce the error:

   function setupRichText()
        richText.fitArea = false	-- 是否根据内容自适应高度
        richText.fitPerHeight = nil	-- 自适应的单行高度
        return richText
    end

After parsing the code above using ast.parse(), the 2nd comment ('-- 自适应的单行高度') cannot be found anywhere in the returned AST. However the 1st comment can be found in the AST as expected.

Would you please check if there is something wrong when processing comments in Chinese?

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