closure-compiler icon indicating copy to clipboard operation
closure-compiler copied to clipboard

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

Open skatsman opened this issue 4 years ago • 7 comments

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

skatsman avatar Jul 14 '20 15:07 skatsman

Is this a blocking error for you?

rrdelaney avatar Jul 14 '20 17:07 rrdelaney

This prevents compiling one of the dependencies (lower-case) of graphql-tools which we use in our project

skatsman avatar Jul 15 '20 13:07 skatsman

Exactly the same issue with (U+3007) preventing compiling the dependency "fast-redact"

jpduvet avatar Dec 20 '22 21:12 jpduvet

Exactly the same issue with (U+0941), which prevents compiling our source code.

icy0307 avatar Mar 31 '23 08:03 icy0307

Same problem with @tanstack/react-query-devtools.

Errors encountered while trying to parse file
  /node_modules/@tanstack/match-sorter-utils/build/lib/remove-accents.js
  {:line 131, :column 3, :message "Character '̆' (U+0306) is not a valid identifier start char"}

smogg avatar Jul 25 '23 09:07 smogg

Yes, getting this as well when using @tanstack/react-query-devtools

brancusi avatar Sep 15 '23 15:09 brancusi

Hello, any idea, why the stopped working on this? Is there a way to bypass this issue? Im also having this with some leaflet react plugins (once in a css file and once in a png). Edit: The CSS issue seems to be, because shadow-cljs does not support CSS.

SergejGleithmann avatar May 16 '24 09:05 SergejGleithmann