yaml-eslint-parser
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -400,7 +400,2 @@ "use strict"; | ||
column++; | ||
if (c === "\n") { | ||
line++; | ||
column = 0; | ||
break; | ||
} | ||
index++; | ||
@@ -419,2 +414,3 @@ } | ||
addToken(tokens, "Punctuator", punctuatorLoc, code); | ||
let lineFeed = false; | ||
while (index < text.length) { | ||
@@ -425,7 +421,13 @@ const c = text[index]; | ||
} | ||
column++; | ||
if (c === "\n") { | ||
if (lineFeed) { | ||
break; | ||
} | ||
line++; | ||
column = 0; | ||
lineFeed = true; | ||
} | ||
else { | ||
column++; | ||
} | ||
index++; | ||
@@ -443,3 +445,5 @@ } | ||
}; | ||
addToken(tokens, "BlockLiteral", tokenLoc, code); | ||
if (tokenLoc.range[0] < tokenLoc.range[1]) { | ||
addToken(tokens, "BlockLiteral", tokenLoc, code); | ||
} | ||
} | ||
@@ -472,7 +476,2 @@ else { | ||
column++; | ||
if (c === "\n") { | ||
line++; | ||
column = 0; | ||
break; | ||
} | ||
index++; | ||
@@ -491,2 +490,3 @@ } | ||
addToken(tokens, "Punctuator", punctuatorLoc, code); | ||
let lineFeed = false; | ||
while (index < text.length) { | ||
@@ -497,7 +497,13 @@ const c = text[index]; | ||
} | ||
column++; | ||
if (c === "\n") { | ||
if (lineFeed) { | ||
break; | ||
} | ||
line++; | ||
column = 0; | ||
lineFeed = true; | ||
} | ||
else { | ||
column++; | ||
} | ||
index++; | ||
@@ -515,3 +521,5 @@ } | ||
}; | ||
addToken(tokens, "BlockFolded", tokenLoc, code); | ||
if (tokenLoc.range[0] < tokenLoc.range[1]) { | ||
addToken(tokens, "BlockFolded", tokenLoc, code); | ||
} | ||
} | ||
@@ -551,3 +559,5 @@ else { | ||
}; | ||
addToken(tokens, "Identifier", tokenLoc, code); | ||
if (tokenLoc.range[0] < tokenLoc.range[1]) { | ||
addToken(tokens, "Identifier", tokenLoc, code); | ||
} | ||
} | ||
@@ -623,3 +633,5 @@ else { | ||
}; | ||
addToken(tokens, "Identifier", tokenLoc, code); | ||
if (tokenLoc.range[0] < tokenLoc.range[1]) { | ||
addToken(tokens, "Identifier", tokenLoc, code); | ||
} | ||
} | ||
@@ -660,3 +672,5 @@ else { | ||
}; | ||
addToken(tokens, "Identifier", tokenLoc, code); | ||
if (tokenLoc.range[0] < tokenLoc.range[1]) { | ||
addToken(tokens, "Identifier", tokenLoc, code); | ||
} | ||
} | ||
@@ -663,0 +677,0 @@ else { |
{ | ||
"name": "yaml-eslint-parser", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A YAML parser that produces output compatible with ESLint", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42959
1153