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

Strange height of backquotes in SQL in PHP string literals #411

Open
f1amy opened this issue Feb 10, 2021 · 6 comments
Open

Strange height of backquotes in SQL in PHP string literals #411

f1amy opened this issue Feb 10, 2021 · 6 comments

Comments

@f1amy
Copy link

f1amy commented Feb 10, 2021

The backquotes have different height on start and end of names:
image

Looks like it depends on the string inside the quotes:
image

@philippnurullin
Copy link
Member

Hi @f1amy . Please send me the exact text with symbols. Looks like the problem is with grave (U+0060). And the placement of it is shifted because of OpenType Feature "Case Sensitive Forms".
What IDE you using?

@f1amy
Copy link
Author

f1amy commented Feb 10, 2021

Hello, @philippnurullin.
Here is the file: backquotes.txt.
IDE is PHPStorm 2021.1 EAP.

@f1amy
Copy link
Author

f1amy commented Feb 10, 2021

I realized that this could be due to EAP build I'm using, but I don't have any other installed currently.

@philippnurullin
Copy link
Member

Yes, it may. We are exploring the ability to support OpenType Features.
We will investigate this issue. Thanks for the feedback.

@toothbrush7777777
Copy link

toothbrush7777777 commented Jan 25, 2022

I see the same in the browser (Firefox / Microsoft Edge / Chrome) and Visual Studio Code (only tested on Windows).
This appears to happen when the preceding (Latin?) letter is capitalised.

SELECT `SQL`, `TestID`, `sql`, `testid`, `test_id` FROM `a`

image

@philippnurullin
Copy link
Member

I have spotted the source of the problem. It's autogenerated OpenType feature.
Turned off for now.

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

No branches or pull requests

3 participants