diff --git a/README.md b/README.md index b220afa..b9e2ebd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,18 @@ Sublime syntax highlighting for CJSX ## Installation -Coming soon... +To install this plugin from Github, follow these steps: + +1. Open Sublime and open "Package Control" (cmd + shift + p). +1. Type "Add Repository"; select the result (hit enter). +1. At the bottom of your Sublime window you will see a text input that prompts you for the Github URL. +1. Copy and paste: "https://github.com/Guidebook/sublime-cjsx". +1. Give Sublime a few minutes to add the repo. +1. Open "Package Control" again (cmd + shift + p) and type "Install Package". +1. Type "sublime cjsx"; select the result (hit enter). +1. Give Sublime a few minutes to install the package. +1. Open a .cjsx file and in the lower right hand corner of your Sublime window, open the syntax dropdown. +1. Select 'CJSX' and smile. ## Credit diff --git a/syntax/CJSX.tmLanguage b/syntax/CJSX.tmLanguage index 2875acb..580fec5 100644 --- a/syntax/CJSX.tmLanguage +++ b/syntax/CJSX.tmLanguage @@ -879,7 +879,7 @@ end - (</)(\2)([^>]*>) + (</)(\2)([^>]*>)|(\/>) endCaptures 1 @@ -970,7 +970,7 @@ match - (</)([^>]+)(>) + (</)([^>]+)(>)|(\/>) name tag.close.coffee