summaryrefslogtreecommitdiffstats
path: root/autoload/elixir/indent.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-06-27 10:07:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-06-27 10:07:29 +0200
commit4f5388350be1052f610b830c8fce8fbc17370ec6 (patch)
tree425cb8ee70c123233055a61d56d73e2eb97536db /autoload/elixir/indent.vim
parent4899585281beab51e5dff1d9ae4d3159244a8275 (diff)
downloadvim-polyglot-4f5388350be1052f610b830c8fce8fbc17370ec6.tar.gz
vim-polyglot-4f5388350be1052f610b830c8fce8fbc17370ec6.zip
Update
Diffstat (limited to 'autoload/elixir/indent.vim')
-rw-r--r--autoload/elixir/indent.vim6
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