Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing highlight on some non-ASCII identifiers #826

Closed
yaohaizh opened this issue Mar 6, 2019 · 4 comments
Closed

missing highlight on some non-ASCII identifiers #826

yaohaizh opened this issue Mar 6, 2019 · 4 comments

Comments

@yaohaizh
Copy link
Collaborator

yaohaizh commented Mar 6, 2019

From @nobodxbodon on March 5, 2019 18:43

Hi,

the differencies are in Line 4 between the English and Chinese versions as below:
screen shot 2019-03-05 at 10 34 48 am
Calculator class:

class Calculator {

  public static void main(String[] args) {
    Calculator calculator = new Calculator();
  }
}

Identifers in Chinese:

class 计算器类 {

  public static void main(String[] args) {
    计算器类 计算器 = new 计算器类();
  }
}

I'm using vscode 1.31.1 with Java Extension Pack 0.6.0 under Mac.

Thanks.

Copied from original issue: microsoft/vscode-java-pack#109

@yaohaizh
Copy link
Collaborator Author

yaohaizh commented Mar 6, 2019

From @nobodxbodon on March 5, 2019 18:57

One additional test shows the method argument shows different too:
screen shot 2019-03-05 at 10 55 41 am

  public void test1(Calculator calculator) {
    calculator.test1(this);
  }

Chinese version:

  public void 测试1(计算器类 计算器) {
    计算器.测试1(this);
  }

@fbricon
Copy link
Collaborator

fbricon commented Mar 6, 2019

This is an issue with the textmate based grammar from upstream VS Code, itself forked from Atom's.

@nobodxbodon
Copy link

@fbricon thanks for the diagnose. May I ask if you refer to the [A-Za-z$_] part in section like this? Would you suggest to move this issue to VS Code or Atom?

@fbricon
Copy link
Collaborator

fbricon commented Apr 27, 2020

This is partially fixed with the new semantic highlighting support in vscode-java 0.61.0. Requires "java.semanticHighlighting.enabled": true in settings.json. Without semantic highlighting, the Textmate grammar is still broken.

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

No branches or pull requests

3 participants