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

Added svelte syntax #284

Merged
merged 1 commit into from Sep 19, 2021
Merged

Added svelte syntax #284

merged 1 commit into from Sep 19, 2021

Conversation

istudyatuni
Copy link
Contributor

I added svelte files by combining HTML and JS syntax.

Example:

<script>
  import Component from './Component.svelte'

  /* 
    Multiline comment 
  */
  function log(text) {
    // single line comment
    console.log(text)
  }
</script>

<h1>Text title</h1>
<!-- 
  html comment 
-->
<button on:click={() => { log('click') }}>Click me</button>
{/* 
  also comment (like jsx)
*/}

<Component />

<style>
  button {
    color: green;
  }
</style>

@boyter
Copy link
Owner

boyter commented Sep 19, 2021

Nice! Thanks for the submission.

@boyter boyter merged commit dc3b05b into boyter:master Sep 19, 2021
@boyter boyter added this to Done in 3.1.0 Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
3.1.0
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants