Skip to content

Comments with Chinese characters are discarded #39

@tony-song

Description

@tony-song

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions