diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-27 10:07:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-27 10:07:29 +0200 |
commit | 4f5388350be1052f610b830c8fce8fbc17370ec6 (patch) | |
tree | 425cb8ee70c123233055a61d56d73e2eb97536db /autoload/elixir | |
parent | 4899585281beab51e5dff1d9ae4d3159244a8275 (diff) | |
download | vim-polyglot-4f5388350be1052f610b830c8fce8fbc17370ec6.tar.gz vim-polyglot-4f5388350be1052f610b830c8fce8fbc17370ec6.zip |
Update
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 |