Skip to content

Commit

Permalink
Formating.
Browse files Browse the repository at this point in the history
  • Loading branch information
aioutecism committed Apr 24, 2016
1 parent 8614843 commit df180cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Motions/Word.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,43 @@ export class MotionWord extends Motion {

private static wordSeparators = './\\\\()"\'\\-:,.;<>~!@#$%^&*|+=\\[\\]{}`~?';
private static blankSeparators = '\\s';

separators: string;

constructor(options: {useBlankSeparatedStyle: boolean} = {useBlankSeparatedStyle: false}) {
constructor(options: {useBlankSeparatedStyle?: boolean} = {}) {
super();
options = Object.assign({useBlankSeparatedStyle: false}, options);

this.separators = options.useBlankSeparatedStyle
? MotionWord.blankSeparators : MotionWord.wordSeparators;
}

static nextStartOrBoundaryIfChange(args: {useBlankSeparatedStyle: boolean} = {useBlankSeparatedStyle: false}): Motion {
static nextStartOrBoundaryIfChange(args: {useBlankSeparatedStyle?: boolean} = {}): Motion {
const obj = MotionWord.nextStart(args);
(obj as MotionWord).useBoundaryIfChange = true;

return obj;
}

static nextStart(args: {useBlankSeparatedStyle: boolean} = {useBlankSeparatedStyle: false}): Motion {
static nextStart(args: {useBlankSeparatedStyle?: boolean} = {}): Motion {
const obj = new MotionWord(args);
obj.wordDelta = MotionWordPosition.NEXT_START;
return obj;
}

static nextEnd(args: {useBlankSeparatedStyle: boolean} = {useBlankSeparatedStyle: false}): Motion {
static nextEnd(args: {useBlankSeparatedStyle?: boolean} = {}): Motion {
const obj = new MotionWord(args);
obj.wordDelta = MotionWordPosition.NEXT_END;
return obj;
}

static prevStart(args: {useBlankSeparatedStyle: boolean} = {useBlankSeparatedStyle: false}): Motion {
static prevStart(args: {useBlankSeparatedStyle?: boolean} = {}): Motion {
const obj = new MotionWord(args);
obj.wordDelta = MotionWordPosition.PREV_START;
return obj;
}

static prevEnd(args: {useBlankSeparatedStyle: boolean} = {useBlankSeparatedStyle: false}): Motion {
static prevEnd(args: {useBlankSeparatedStyle?: boolean} = {}): Motion {
const obj = new MotionWord(args);
obj.wordDelta = MotionWordPosition.PREV_END;
return obj;
Expand Down

0 comments on commit df180cf

Please sign in to comment.