diff --git a/README.md b/README.md index e49c74e..0ab3250 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,21 @@ # Vue Syntax Highlight +**Note:** The `master` branch hosts the `tmLanguage` based implementation that is distributed to Sublime Text build < 3153. It is also used to power GitHub's syntax highlight of `*.vue` files in [linguist](https://github.com/github/linguist). + +For a newer implementation of the syntax that is distributed to build >=3153, See the [new](https://github.com/vuejs/vue-syntax-highlight/tree/new) branch. + +--- + Sublime Text Syntax highlighting for single-file [Vue.js](http://vuejs.org) components (enabled by [vue-loader](https://github.com/vuejs/vue-loader) or [vueify](https://github.com/vuejs/vueify)). -![screenshot](https://cloud.githubusercontent.com/assets/499550/11458853/99ed23aa-9696-11e5-9bf6-43c706487aee.png) +![screenshot](https://raw.githubusercontent.com/vuejs/vue-syntax-highlight/new/samples/screenshot.png) ### Install - Via Package Control: search for `Vue Syntax Highlight`. - Manual: clone this repo into your Sublime `Packages` folder. -**NOTE:** You still need to install corresponding packages for pre-processors (e.g. Jade, SASS, CoffeeScript) to get proper syntax highlighting for them. +**Additional Installation Requirements:** In order to get proper syntax highlighting for pre-processors (e.g. Jade, SASS, CoffeeScript) you will also need to install the corresponding packages for each of them. ### Enabling JSX Highlighting diff --git a/samples/basic.vue b/samples/basic.vue index d192aa0..3c7d521 100644 --- a/samples/basic.vue +++ b/samples/basic.vue @@ -12,7 +12,8 @@ Things to verify: + @click="onClick('hello')" + @click.prevent="onClick('hello')"> Hello diff --git a/samples/langs.vue b/samples/langs.vue index bb6d2bc..b96fc7c 100644 --- a/samples/langs.vue +++ b/samples/langs.vue @@ -14,6 +14,19 @@ body color primary-color + + + +