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

Improve JavaScript and TypeScript syntax highlighting #25328

Merged
merged 5 commits into from
Feb 21, 2025

Conversation

chbk
Copy link
Contributor

@chbk chbk commented Feb 21, 2025

Release Notes:

  • Improved JavaScript and TypeScript syntax highlighting.
Zed 0.174.6 With this PR
Image Image
  • regex_flags: keyword.regex, see the Regex PR for other Regex scopes
  • @: punctuation.special, as in Python
  • jsx_text: text.jsx
  • =: operator -> punctuation.jsx.delimiter, punctuation as in VS Code and Atom
  • added jsx scope to target JSX tokens specifically
/**
 * @keyword comment
 */
@log
class X {
  render() {
    return (
      <div jsx_attribute="value">
        <Input onKeyPress={super.bind(this)}/>
        jsx_text
      </div>
    );
  }
}
const IDENTIFIER = true

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 21, 2025
@chbk chbk marked this pull request as ready for review February 21, 2025 13:32
@maxdeviant maxdeviant self-assigned this Feb 21, 2025
Copy link
Member

@maxdeviant maxdeviant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@maxdeviant maxdeviant changed the title Improve JavaScript syntax highlighting Improve JavaScript and TypeScript syntax highlighting Feb 21, 2025
@maxdeviant maxdeviant enabled auto-merge (squash) February 21, 2025 21:51
@maxdeviant maxdeviant merged commit 8f40bcc into zed-industries:main Feb 21, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants