google / google/google-java-format

Formatter crashes on unicode character in comment

Open
#836 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

Minimal reproduction case:

```java
package com.company;

public class Bug {
// \u000D
}
```

The formatter fails with the following message:

```
error: expected token: '\'; generated } instead
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.