@@ -872,6 +872,33 @@ describe('paredit', () => {
872
872
await paredit . dragSexprBackward ( a , [ 'b' ] ) ;
873
873
expect ( textAndSelection ( a ) ) . toEqual ( textAndSelection ( b ) ) ;
874
874
} ) ;
875
+
876
+ describe ( 'Ignore markers' , ( ) => {
877
+ it ( 'Drags past symbol' , async ( ) => {
878
+ const a = docFromTextNotation ( '#_a (:b c)|' ) ;
879
+ const b = docFromTextNotation ( '#_(:b c)| a' ) ;
880
+ await paredit . dragSexprBackward ( a ) ;
881
+ expect ( textAndSelection ( a ) ) . toEqual ( textAndSelection ( b ) ) ;
882
+ } ) ;
883
+ it ( 'Drags past map' , async ( ) => {
884
+ const a = docFromTextNotation ( '#_{:a b} (:c d)|' ) ;
885
+ const b = docFromTextNotation ( '#_(:c d)| {:a b}' ) ;
886
+ await paredit . dragSexprBackward ( a ) ;
887
+ expect ( textAndSelection ( a ) ) . toEqual ( textAndSelection ( b ) ) ;
888
+ } ) ;
889
+ it ( 'Drags past ignore after newline' , async ( ) => {
890
+ const a = docFromTextNotation ( '(:a b)•#_{:c d}|' ) ;
891
+ const b = docFromTextNotation ( '(:a b)•{:c d}|#_' ) ;
892
+ await paredit . dragSexprBackward ( a ) ;
893
+ expect ( textAndSelection ( a ) ) . toEqual ( textAndSelection ( b ) ) ;
894
+ } ) ;
895
+ it ( 'Drags past ignore after space' , async ( ) => {
896
+ const a = docFromTextNotation ( '(:a b) #_{:c d}|' ) ;
897
+ const b = docFromTextNotation ( '(:a b) {:c d}|#_' ) ;
898
+ await paredit . dragSexprBackward ( a ) ;
899
+ expect ( textAndSelection ( a ) ) . toEqual ( textAndSelection ( b ) ) ;
900
+ } ) ;
901
+ } ) ;
875
902
} ) ;
876
903
877
904
describe ( 'backwardUp - one line' , ( ) => {
0 commit comments