tree-sitter / tree-sitter-scala

Scala grammar for tree-sitter
MIT License
158 stars 55 forks source link

Fix character literal #383

Closed eed3si9n closed 7 months ago

eed3si9n commented 7 months ago

Fixes https://github.com/tree-sitter/tree-sitter-scala/issues/382 Fixes https://github.com/tree-sitter/tree-sitter-scala/issues/380

Problem

Previously the character literal was updated copied from that of Rust apparently, but Scala doesn't have curly braces in the character literal. The regex has bug, and it's failing CI.

We do, however, support two 'u' characters.

Solution

  1. This removes the curly brace variant.
  2. Instead, this adds support for \uu0041