edge-lexer
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -340,4 +340,6 @@ "use strict"; | ||
} | ||
line = line.trim(); | ||
const recentTag = this.openedTags[this.openedTags.length - 1]; | ||
return line.trim() === `@end${recentTag.properties.name}`; | ||
const endStatement = `@end${recentTag.properties.name}`; | ||
return line === endStatement || line === `${endStatement}~`; | ||
} | ||
@@ -400,2 +402,8 @@ /** | ||
this.consumeNode(this.openedTags.pop()); | ||
/** | ||
* Do not add next newline when statement ends with `~` | ||
*/ | ||
if (line.endsWith('~')) { | ||
this.dropNewLine = true; | ||
} | ||
return; | ||
@@ -402,0 +410,0 @@ } |
{ | ||
"name": "edge-lexer", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Parses raw markup files to converts them to Edge tokens", | ||
@@ -5,0 +5,0 @@ "main": "build/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
62642
1516