Skip to content

Commit

Permalink
handle charlists like Strings in indent code
Browse files Browse the repository at this point in the history
  • Loading branch information
jbodah committed Jun 12, 2021
1 parent 52fb232 commit 71a65ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/elixir/indent.vim
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,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)
Expand Down

0 comments on commit 71a65ab

Please sign in to comment.