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: add Svelte language to CodeMirror #212

Merged

Conversation

adrianmroz
Copy link
Contributor

Should solve #211

Copy link

stackblitz bot commented Aug 4, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@adrianmroz adrianmroz force-pushed the add-svelte-language-to-codemirror branch from aaeb47a to 57e1114 Compare August 4, 2024 18:40
@adrianmroz adrianmroz changed the title Add Svelte Language to CodeMirror feat: Add Svelte Language to CodeMirror Aug 4, 2024
@adrianmroz adrianmroz changed the title feat: Add Svelte Language to CodeMirror feat: add Svelte language to CodeMirror Aug 4, 2024
Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

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

Hey @adrianmroz! Thanks a lot for the PR! 😃

This looks pretty good!

Only a few more steps and we can merge your PR:

  1. The dependency seems to need a few peerDependencies: @lezer/common, @lezer/javascript, @lezer/lr. Could you add them explicitly to the package.json as well?
  2. The lock file needs to be updated. You can do that with pnpm i at the root of the workspace.

If you want to test your changes you can then do:

pnpm dev

You can add a temporary svelte file in packages/template/src/content/tutorial/1-basics/1-introduction/1-welcome/_files, you navigate to http://localhost:4321/ and check that the syntax highlighting works as expected.

Let me know if you run into any issues!

@adrianmroz adrianmroz force-pushed the add-svelte-language-to-codemirror branch from 57e1114 to cdb8ff5 Compare August 5, 2024 18:23
@adrianmroz
Copy link
Contributor Author

@Nemikolh

I've pushed changes to dependencies and lock file.

I also checked example file for syntax highlighting. It is not perfect, but much better than nothing :)
image

Let me know if I still missed something.

Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the PR 😃

@Nemikolh Nemikolh merged commit 359c0e0 into stackblitz:main Aug 6, 2024
9 checks passed
@Nemikolh Nemikolh mentioned this pull request Aug 7, 2024
29 tasks
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

Successfully merging this pull request may close these issues.

2 participants