Skip to content

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

@skatsman

Description

@skatsman

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

Activity

rrdelaney

rrdelaney commented on Jul 14, 2020

@rrdelaney
Contributor

Is this a blocking error for you?

skatsman

skatsman commented on Jul 15, 2020

@skatsman
Author

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

added a commit that references this issue on Jul 19, 2020
5ad0744
jpduvet

jpduvet commented on Dec 20, 2022

@jpduvet

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

icy0307

icy0307 commented on Mar 31, 2023

@icy0307

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

smogg

smogg commented on Jul 25, 2023

@smogg

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"}
brancusi

brancusi commented on Sep 15, 2023

@brancusi

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

SergejGleithmann

SergejGleithmann commented on May 16, 2024

@SergejGleithmann

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.

jwr

jwr commented on May 2, 2025

@jwr

Just encountered this, and it is a showstopper here.

Errors encountered while trying to parse file
[...]/node_modules/lower-case/dist/index.js
{:message "Character '̇' (U+0307) is not a valid identifier start char", :line 13, :column 13}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @jwr@brancusi@smogg@skatsman@rrdelaney

      Issue actions

        Parser error on "combining character" (U+0307) · Issue #3639 · google/closure-compiler