google/closure-compiler

Parser error on "combining character" (U+0307)

Open

#3,639 建立於 2020年7月14日

在 GitHub 查看
 (8 留言) (8 反應) (0 負責人)Java (1,197 fork)batch import
P3good first issuehelp wanted

倉庫指標

Star
 (7,176 star)
PR 合併指標
 (平均合併 3天 4小時) (30 天內合併 1 個 PR)

描述

There seems to be an issue with parsing composite character sequences.

Composite character consist of the base character and combining character sequence (U+0049)(U+0307)
Using this character causing the compiler to fail with the parser error.

Example code

var bar = {
İ: "foo"
};

Compiler error

input0:2: ERROR - [JSC_PARSE_ERROR] Parse error. Character '̇' (U+0307) is not a valid identifier start char
  2| İ: "foo"
      ^

1 error(s), 0 warning(s)

Demo

Example

貢獻者指南