diff options
Diffstat (limited to 'autoload/elixir')
-rw-r--r-- | autoload/elixir/indent.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/elixir/indent.vim b/autoload/elixir/indent.vim index 412d2cf5..c9adcd0a 100644 --- a/autoload/elixir/indent.vim +++ b/autoload/elixir/indent.vim @@ -108,7 +108,7 @@ endfunction " Returns 0 or 1 based on whether or not the given line number and column " number pair is a string or comment function! s:is_string_or_comment(line, col) - return s:syntax_name(a:line, a:col) =~ '\%(String\|Comment\)' + return s:syntax_name(a:line, a:col) =~ '\%(String\|Comment\|CharList\)' endfunction function! s:syntax_name(line, col) @@ -149,7 +149,7 @@ function! s:find_last_pos(lnum, text, match) let peek_match = match(peek, a:match) if peek_match == ss_match + 1 let syng = synIDattr(synID(a:lnum, c + ss_match, 1), 'name') - if syng !~ '\%(String\|Comment\)' + if syng !~ '\%(String\|Comment\|CharList\)' return c + ss_match end end @@ -169,7 +169,7 @@ function! elixir#indent#handle_top_of_file(context) endfunction function! elixir#indent#handle_starts_with_string_continuation(context) - if s:syntax_name(a:context.lnum, a:context.first_nb_char_idx) =~ '\(String\|Comment\)$' + if s:syntax_name(a:context.lnum, a:context.first_nb_char_idx) =~ '\(String\|Comment\|CharList\)$' return -2 else return -1 |