Permalink
Browse files

Add default rules for "<=>" operator

  • Loading branch information...
1 parent 58c8fce commit c134a35178c31f4f684d4e134c8b41fd9aba838f @kana committed Feb 19, 2012
Showing with 11 additions and 0 deletions.
  1. +2 −0 autoload/smartpunc.vim
  2. +9 −0 t/api.vim
View
@@ -163,6 +163,8 @@ function! smartpunc#define_default_rules() "{{{2
call D({'at': ' < \%#', 'char': '<BS>', 'input': '<BS><BS><BS>'})
call D({'at': ' < \%#', 'char': '=', 'input': '<BS><BS><BS> <LT>= '})
call D({'at': ' <= \%#', 'char': '<BS>', 'input': '<BS><BS><BS><BS> <LT> '})
+ call D({'at': ' <= \%#', 'char': '>', 'input': '<BS><BS><BS><BS> <LT>=> '})
+ call D({'at': ' <=> \%#', 'char': '<BS>', 'input': '<BS><BS><BS><BS><BS> <LT>= '})
call D({'at': ' < \%#', 'char': '<LT>', 'input': '<BS><BS><BS> <LT><LT> '})
call D({'at': ' << \%#', 'char': '<BS>', 'input': '<BS><BS><BS><BS> <LT> '})
call D({'at': ' << \%#', 'char': '=', 'input': '<BS><BS><BS><BS> <LT><LT>= '})
View
@@ -740,6 +740,15 @@ describe 'The default configuration'
\ ],
\ [
\ ["foo", 'foo', 1, 4 - 1],
+ \ ["<", 'foo < ', 1, 7 - 1],
+ \ ["=", 'foo <= ', 1, 8 - 1],
+ \ [">", 'foo <=> ', 1, 9 - 1],
+ \ ["\<BS>", 'foo <= ', 1, 8 - 1],
+ \ ["\<BS>", 'foo < ', 1, 7 - 1],
+ \ ["\<BS>", 'foo', 1, 4 - 1],
+ \ ],
+ \ [
+ \ ["foo", 'foo', 1, 4 - 1],
\ ["|", 'foo | ', 1, 7 - 1],
\ ["\<BS>", 'foo', 1, 4 - 1],
\ ["|", 'foo | ', 1, 7 - 1],

0 comments on commit c134a35

Please sign in to comment.