-
Notifications
You must be signed in to change notification settings - Fork 766
Closed
Labels
A-lexingarea: changes to individual lexersarea: changes to individual lexers
Milestone
Description
I'd like to highlight Vue.js code, something like:
```vue
<script>
// give each todo a unique id
let id = 0
export default {
data() {
return {
newTodo: '',
todos: [
{ id: id++, text: 'Learn HTML' },
{ id: id++, text: 'Learn JavaScript' },
{ id: id++, text: 'Learn Vue' }
]
}
},
methods: {
addTodo() {
this.todos.push({ id: id++, text: this.newTodo})
this.newTodo = ''
},
removeTodo(todo) {
this.todos = this.todos.filter((element) => element.id != todo.id)
}
}
}
</script>
<template>
<form @submit.prevent="addTodo">
<input v-model="newTodo">
<button>Add Todo</button>
</form>
<ul>
<li v-for="todo in todos" :key="todo.id">
{{ todo.text }}
<button @click="removeTodo(todo)">X</button>
</li>
</ul>
</template>
```
I've seen that vue-lexer exists which is based on jsx-lexer. Is there any chance for it to be integrated in this repository so we don't have to install external packages?
Thanks
jd-solanki, randomstuff, MartinX3 and Kenneth-Sills
Metadata
Metadata
Assignees
Labels
A-lexingarea: changes to individual lexersarea: changes to individual lexers