We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a13252 commit 792e6baCopy full SHA for 792e6ba
platform/nativescript/compiler/sfc/parser.js
@@ -46,6 +46,10 @@ export function parseComponent(
46
currentBlock = {
47
type: tag,
48
content: '',
49
+ tags: {
50
+ open: { start, end },
51
+ close: null
52
+ },
53
start: end,
54
attrs: attrs.reduce((cumulated, { name, value }) => {
55
cumulated[name] = value || true
@@ -98,6 +102,7 @@ export function parseComponent(
98
102
if (currentBlock.type !== 'template' && options.pad) {
99
103
text = padContent(currentBlock, options.pad) + text
100
104
}
105
+ currentBlock.tags.close = { start, end }
101
106
currentBlock.content = text
107
currentBlock = null
108
0 commit comments