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

feat: match JetBrains Syntax more closely #53

Closed
wants to merge 4 commits into from

Conversation

nekowinston
Copy link
Contributor

This PR split our Token definitions into separate files per language.

I also noticed that we re-define Strings to be green about 80 times, as well as other tokens.
Everything should be looked over, we should inherit more from global definitions.

@nekowinston nekowinston marked this pull request as draft October 27, 2022 10:12
@nekowinston
Copy link
Contributor Author

nekowinston commented Oct 27, 2022

The last commit improves Python Highlights, copied from our JetBrains theme:

VSCode:
CleanShot 2022-10-28 at 00 00 36

JetBrains:
CleanShot 2022-10-28 at 00 05 43

@nekowinston nekowinston changed the title WIP: refactor: split tokens into separate files feat: match JetBrains Syntax more closely Oct 27, 2022
@nekowinston nekowinston self-assigned this Oct 31, 2022
@nekowinston nekowinston added enhancement New feature or request help wanted Extra attention is needed labels Oct 31, 2022
@adriandelgg
Copy link

+1 need this.

@adriandelgg
Copy link

Can you do this for JavaScript/TypeScript as well?🙏

@nekowinston
Copy link
Contributor Author

Scrapping this PR in favor of a later one

nekowinston added a commit that referenced this pull request Sep 2, 2023
Re-implements most changes that #53 did for python.
nekowinston added a commit that referenced this pull request Sep 2, 2023
Re-implements most changes that #53 did for python.
nekowinston added a commit that referenced this pull request Sep 2, 2023
* feat!(syntax): rework syntax highlighting

* feat(syntax): yaml adjustments

* feat(syntax): remove italic keywords in compiler

* feat(syntax): add more semantic tokens

* feat(syntax): remove illegal/deprecated highlight

* feat(syntax): property name from json -> inherited (toml, etc.)

* feat(syntax): add markdown

* feat(syntax): revert semantic peach HLs for constants

* feat(syntax): add ini

* feat(syntax): module.exports in cjs

* feat(syntax): semantic parameters red -> maroon

* feat(syntax): reset most semantic tokens

* feat(syntax): port python changes from #53

Re-implements most changes that #53 did for python.

* feat(syntax): add fontStyle to all tokens

* feat(syntax): disable semantic hl, adjust for TS code

* feat(syntax): add JSX/TSX/Astro

* feat(syntax): markdown language identifier

* feat(syntax): css/less/scss & php

* feat(syntax): markdown backticks & leading # for headers

* feat(syntax): css/html improvements, svelte support, php dollar sign

* feat(syntax): treat const in JS/TS as variable

* ci(lint): only run on main branch for push events

* feat(syntax): set generic `punctuation.definition.variable` to text

* feat(syntax): add dotenv support

* feat(syntax): reenable semantic tokens, scoped to python, update python

* feat(syntax): use `red` for self/this

* feat(syntax): ignore peach on const semantic for JS/TS

* feat(syntax): add more exceptions for keywords

* feat(syntax): shell variables in strings, shebang

* feat(syntax): ruby internal functions

* feat(syntax): js/ts properties

* feat(syntax): css vendored properties

* feat(syntax): TOML array keys & ini sections
@nekowinston nekowinston deleted the refactor/split-tokens branch September 2, 2023 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking Change: Improve syntax highlighting for consistency with other Catppuccin themes
2 participants