Skip to content

Commit

Permalink
Clean up orgmode implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian Karter committed Apr 10, 2018
1 parent 6da4fe0 commit 5309828
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugin/bullets.vim
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,9 @@ fun! s:match_roman_list_item(input_text)
endfun

fun! s:match_bullet_list_item(input_text)
let l:std_bullet_regex = '\v(^\s*(-|*|#\.|\\item)( \[[x ]?\])? )(.*)'
let l:std_bullet_regex = '\v(^\s*(-|\*+|#\.|\\item)( \[[x ]?\])? )(.*)'
let l:matches = matchlist(a:input_text, l:std_bullet_regex)

if empty(l:matches)
let l:orgmode_header_regex = '\v(^(\*+)() )(.*)'
let l:matches = matchlist(a:input_text, l:orgmode_header_regex)
endif

if empty(l:matches)
return {}
endif
Expand Down

0 comments on commit 5309828

Please sign in to comment.