Skip to content

Commit

Permalink
Merge commit '2f3935516d1aea7dc3fbd9a45efec4ba9f0b6d50'
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Feb 21, 2013
2 parents 7fab32d + 2f39355 commit 2e97915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indent/javascript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ set cpo&vim
" ============

" Regex of syntax group names that are or delimit string or are comments.
let s:syng_strcom = 'javaScript\%(String\|RegexpString\|CommentTodo\|LineComment\|Comment\|DocComment\)'
let s:syng_strcom = 'string\|regex\|comment\c'

" Regex of syntax group names that are strings.
let s:syng_string = 'javaScript\%(RegexpString\)'
let s:syng_string = 'regex\c'

" Regex of syntax group names that are strings or documentation.
let s:syng_multiline = 'javaScriptDocComment\|javaScriptComment'
let s:syng_multiline = 'comment\c'

This comment has been minimized.

Copy link
@brianarn

brianarn May 22, 2013

Contributor

This change, from 'javaScriptDocComment|javaScriptComment' to 'comment\c' is breaking indentation. I've reported details as issue #77.


" Expression used to check whether we should skip a match with searchpair().
let s:skip_expr = "synIDattr(synID(line('.'),col('.'),1),'name') =~ '".s:syng_strcom."'"
Expand Down

0 comments on commit 2e97915

Please sign in to comment.