Skip to content

Commit 02c8c64

Browse files
authored
remove rar
1 parent 5453eb0 commit 02c8c64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

indent/javascript.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ let s:expr_case = s:line_pre . '\%(\%(case\>.\+\)\|default\)\s*:\C'
4242
" Regex of syntax group names that are or delimit string or are comments.
4343
let s:syng_strcom = '\%(s\%(tring\|pecial\)\|comment\|regex\|doc\|template\)'
4444

45-
" Regex of syntax group names that are strings or documentation.
46-
let s:syng_comment = '\%(comment\|doc\)'
47-
4845
" Expression used to check whether we should skip a match with searchpair().
4946
let s:skip_expr = "synIDattr(synID(line('.'),col('.'),0),'name') =~? '".s:syng_strcom."'"
5047
function s:skip_func(lnum)
@@ -159,7 +156,7 @@ function GetJavascriptIndent()
159156
let syns = synIDattr(synID(v:lnum, 1, 0), 'name')
160157

161158
" start with strings,comments,etc.
162-
if syns =~? s:syng_comment
159+
if syns =~? '\%(comment\|doc\)'
163160
if l:line =~ '^\s*\*'
164161
return cindent(v:lnum)
165162
elseif l:line !~ '^\s*\/'

0 commit comments

Comments
 (0)