Skip to content

Commit 9e019fc

Browse files
committed
Merge branch 'release/0.8.2'
2 parents 7064a6e + e1ac433 commit 9e019fc

File tree

2 files changed

+39
-23
lines changed

2 files changed

+39
-23
lines changed

README.markdown

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,20 @@ This version of this file features the following text highlights:
1717
- Operation, comparison and logical symbols (`=`,`==`,`===`,`!=`,etc.).
1818
- Separate highlight of the arguments. Thanks to [Billychan](https://github.com/jelera/vim-javascript-syntax/commit/b03f40ff6ddf605ac146634a651632d6c1e8a50b).
1919

20-
To enable code folding add the following to your `.vimrc`.
2120

22-
```vim
23-
au FileType javascript call JavaScriptFold()
24-
```
21+
### [Screenshots](http://imgur.com/a/7bnu3)
22+
This is the stock Javascript syntax file
23+
#### Solarized Light
24+
![Stock Vim JavaScript syntax file](http://i.imgur.com/FCVLMgl.png)
2525

26+
This is with the Enhanced Syntax file
27+
![Enhanced JavaScript Vim syntax](http://i.imgur.com/yGY3Cmm.png)
28+
29+
#### Hybrid
30+
![Stock Vim JavaScript syntax file](http://i.imgur.com/cGb3EjH.png)
31+
32+
This is with the Enhanced Syntax file
33+
![Enhanced JavaScript Vim syntax](http://i.imgur.com/cmgdlO6.png)
2634
### Installation
2735
- Using [NeoBundle](https://github.com/Shougo/neobundle.vim) **(Which I recommend)**,
2836
add this line to your `.vimrc`
@@ -44,29 +52,38 @@ Plugin 'jelera/vim-javascript-syntax'
4452
```bash
4553
git clone https://github.com/jelera/vim-javascript-syntax.git ~/.vim/bundle/vim-javascript-syntax
4654
```
55+
4756
### Suggested Companion Plugins
4857
- **Indentation**, can be achieved with [Javascript-Indent](https://github.com/vim-scripts/JavaScript-Indent) by Preston Koprivica. On my testing, it has proved to be the most capable and also indents HTML and JS inside HTML.
4958
The project is unmaintained for now, but you could fork it and improve upon it.
5059
- **Autocompletion** by [Tern for Vim](https://github.com/marijnh/tern_for_vim)
5160
- Popular **third-party libraries support** like jQuery, YUI, Prototype, by [javascript-libraries-syntax](https://github.com/othree/javascript-libraries-syntax.vim)
5261

62+
5363
### Contributions
54-
Always welcome, make sure your commit message should follow this
64+
This project follows the
65+
[Git-flow](http://nvie.com/posts/a-successful-git-branching-model/) methodology,
66+
this will keep the master branch clean for new stable releases. Also the
67+
version numbering convention will be [this one](http://stackoverflow.com/a/65750)
68+
69+
More about Git-flow at:
70+
- [Daniel Kummer's Git Flow cheatsheet](http://danielkummer.github.io/git-flow-cheatsheet/)
71+
- [Sayanee Basu's Build Podcast - Git Flow](https://www.youtube.com/watch?v=Hh-jJcJ5IJ8)
72+
73+
#### For new contributors
74+
Follow this steps
75+
- Clone this repository.
76+
- Using the command line, run `git flow init -d`.
77+
- Checkout the `develop` branch.
78+
- For new features: Create a new `feature` branch using git-flow.
79+
- For bugfixes: Commit in the `develop` branch.
80+
- Bump the date and version number on the syntax file.
81+
- When done, don't forget to push the `develop` branch.
82+
- Submit a pull request.
83+
84+
While all contributions are always welcome, make sure your commit message follow this
5585
[**convention**](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
5686

57-
### [Screenshots](http://imgur.com/a/7bnu3)
58-
This is the stock Javascript syntax file
59-
#### Solarized Light
60-
![Stock Vim JavaScript syntax file](http://i.imgur.com/FCVLMgl.png)
61-
62-
This is with the Enhanced Syntax file
63-
![Enhanced JavaScript Vim syntax](http://i.imgur.com/yGY3Cmm.png)
64-
65-
#### Hybrid
66-
![Stock Vim JavaScript syntax file](http://i.imgur.com/cGb3EjH.png)
67-
68-
This is with the Enhanced Syntax file
69-
![Enhanced JavaScript Vim syntax](http://i.imgur.com/cmgdlO6.png)
7087

7188
### License
7289
The same as Vim

syntax/javascript.vim

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
" Vim syntax file
22
" Language: JavaScript
33
" Maintainer: Jose Elera Campana <https://github.com/jelera>
4-
" Last Modified: Mon 09 Dec 2013 01:20:46 PM CST
5-
" Version: 0.8.1
6-
" Changes: Go to https://github.com/jelera/vim-javascript-syntax for
7-
" recent changes.
4+
" Last Modified: Wed 24 Feb 2016 03:35:03 AM CST
5+
" Version: 0.8.2
86
" Credits: Zhao Yi, Claudio Fleiner, Scott Shattuck (This file is based
97
" on their hard work), gumnos (From the #vim IRC Channel in
10-
" Freenode)
8+
" Freenode), all the contributors at this project's github page
9+
" (https://github.com/jelera/vim-javascript-syntax/graphs/contributors)
1110

1211
if !exists("main_syntax")
1312
if version < 600

0 commit comments

Comments
 (0)