Extend default = rule to include ?=

Close #65
This commit is contained in:
Junegunn Choi
2015-07-15 21:57:33 +09:00
parent c62d124be6
commit a1118be7d9
2 changed files with 15 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ set cpo&vim
let s:easy_align_delimiters_default = {
\ ' ': { 'pattern': ' ', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0 },
\ '=': { 'pattern': '===\|<=>\|\(&&\|||\|<<\|>>\)=\|=\~[#?]\?\|=>\|[:+/*!%^=><&|.-]\?=[#?]\?',
\ '=': { 'pattern': '===\|<=>\|\(&&\|||\|<<\|>>\)=\|=\~[#?]\?\|=>\|[:+/*!%^=><&|.-?]\?=[#?]\?',
\ 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 },
\ ':': { 'pattern': ':', 'left_margin': 0, 'right_margin': 1, 'stick_to_left': 1 },
\ ',': { 'pattern': ',', 'left_margin': 0, 'right_margin': 1, 'stick_to_left': 1 },

View File

@@ -198,4 +198,18 @@ Expect:
a | bbb | c
aa | bb | cc
* #65 ?=
Given:
a?=b
aa?=bb
aaa?=bbb
Do (#65 Alignment around ?=):
\<space>Aip=
Expect:
a ?= b
aa ?= bb
aaa ?= bbb
Include: include/teardown.vader