Skip to content

Commit

Permalink
Formating.
Browse files Browse the repository at this point in the history
  • Loading branch information
aioutecism committed Apr 25, 2016
1 parent 3ac89b4 commit 26bf8fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TextObjects/QuotedString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {TextObject} from './TextObject';

export class TextObjectQuotedString extends TextObject {
private static escapeCharacter = '\\';

private quoteCharacter: string;
private adjustedAnchor: Position;

Expand Down Expand Up @@ -38,7 +38,7 @@ export class TextObjectQuotedString extends TextObject {
let characterIndex = anchor.character - 1;

while (characterIndex >= 0) {
let characterEscaped = lineText[characterIndex-1] === TextObjectQuotedString.escapeCharacter;
const characterEscaped = lineText[characterIndex - 1] === TextObjectQuotedString.escapeCharacter;
if (lineText[characterIndex] === this.quoteCharacter && !characterEscaped) {
this.adjustedAnchor = new Position(lineIndex, anchor.character);
return new Range(
Expand All @@ -53,7 +53,7 @@ export class TextObjectQuotedString extends TextObject {
characterIndex = anchor.character;

while (characterIndex < lineText.length) {
let characterEscaped = lineText[characterIndex-1] === TextObjectQuotedString.escapeCharacter;
const characterEscaped = lineText[characterIndex - 1] === TextObjectQuotedString.escapeCharacter;
if (lineText[characterIndex] === this.quoteCharacter && !characterEscaped) {
this.adjustedAnchor = new Position(lineIndex, characterIndex + 1);
return new Range(
Expand All @@ -79,7 +79,7 @@ export class TextObjectQuotedString extends TextObject {
let characterIndex = anchor.character;

while (characterIndex < lineText.length) {
let characterEscaped = lineText[characterIndex-1] === TextObjectQuotedString.escapeCharacter;
const characterEscaped = lineText[characterIndex - 1] === TextObjectQuotedString.escapeCharacter;
if (lineText[characterIndex] === this.quoteCharacter && !characterEscaped) {
return new Range(
lineIndex, characterIndex,
Expand Down

0 comments on commit 26bf8fd

Please sign in to comment.