You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added: Support for enabling/disabling logging. (Enabled by default. To Disable: let g:js_indent_log = 0 somewhere in your .vimrc script)
88
-
- Added: Support for while() control block.
89
-
- Added: Support for do {} while(); control block.
90
-
- Added: Support for with() {} control block.
91
-
- Added: Skeleton support for all MULTI-LINE cntrl blocks SINGLE LINE cntrl blocks DO NOT HAVE SKELETON VERSIONS!!
92
-
- Added: Skeleton support for function declarations.
93
-
- Added: Skeleton support for basic objects.
94
-
- Added: Tests for skeleton code.
95
-
- Fixed: Html indent now correctly calls GetJsIndent() while inside <script type="text/javascript"></script>
96
-
- Fixed: Html will now source the javascript.vim (indent file) via two methods:
97
-
1. If g:js_indent is set and points to the location of the indent file, it will source it.
98
-
2. Looks in your runtime path for indent/javascript.vim (sources first one found)
99
-
- Added: Tests for HTML + JS
100
-
- Notes:
101
-
\ None
102
-
~
103
-
104
-
~Beta 2.1 Released: (5/6/10)
105
-
- Fixed: Object ending regex is now anchored to beginning and end of line and cannot contain preceding {'s or ['s.
106
-
- Fixed: Multi Line Invocations.
107
-
- Dependencies:
108
-
\ Syntax Script must return *Comment* for any type of comment when invoked with synIDattr
109
-
- Concerns:
110
-
\ Multi Line Invocations must end in ; or , to be recognized (although JS doesn't specifically require this) (so as not confuse with multi line declarations)
111
-
\ Does not recognize continuation lines.
112
-
- Notes:
113
-
\ Entire test.js file is now correctly indented (except for continuations)
114
-
\ NOW SUPPORTS SKELETON CODE
115
-
if(x) {
116
-
} else if(y) {
117
-
} else {
118
-
}
119
-
~
120
-
121
-
~Beta 2.0 Released: (5/5/10)
122
-
- Now hosted on Google Code: http://code.google.com/p/web-indent/
123
-
- Completely rewrote script
124
-
- Fixed: Comments are determined by synIDAttr instead of Regex
125
-
- Added: Anonymous function support. (function(){})();
126
-
- Dependencies:
127
-
\ None
128
-
- Concerns:
129
-
\ Too many if statements, but extremely well organized.
130
-
\ Sometimes vim has trouble indenting an entire file. Have to scroll through to location above problem area and use =G again. Is this a problem with how the scripts get loaded?
\ Comments are determined by regex (==> Cannot determine middle of block comments)
141
-
\ Code is poorly organized and hard to understand.
142
-
~
143
-
144
90
PS: I'm also not sure if I'm allowed to repost the html.vim, since I couldn't find a license for it. I'm pretty sure it was the one packaged with vim by default. If anyone has any objections, I'll take it down immediately.
0 commit comments