Add '#'-rule (#30)

For Ruby/Python comments. This new '#' rule will only match
'#' characters that are highlighted as comments.
This commit is contained in:
Junegunn Choi
2014-06-20 10:34:00 +09:00
parent 0aa6289d8c
commit a98c1ccc99
4 changed files with 12 additions and 8 deletions

View File

@@ -37,6 +37,8 @@ let s:easy_align_delimiters_default = {
\ ',': { 'pattern': ',', 'left_margin': 0, 'right_margin': 1, 'stick_to_left': 1 },
\ '|': { 'pattern': '|', 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
\ '.': { 'pattern': '\.', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0 },
\ '#': { 'pattern': '#\+',
\ 'delimiter_align': 'l', 'ignore_groups': ['^\(.\(Comment\)\@!\)*$'] },
\ '&': { 'pattern': '\\\@<!&\|\\\\',
\ 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
\ '{': { 'pattern': '(\@<!{',