diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts
index 352154bc73..c8ac4cf7a6 100644
--- a/src/compiler/compile/Component.ts
+++ b/src/compiler/compile/Component.ts
@@ -398,7 +398,7 @@ export default class Component {
this.source
);
- const parts = module.split('ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ]');
+ const parts = module.split('✂]');
const final_chunk = parts.pop();
const compiled = new Bundle({ separator: '' });
@@ -411,7 +411,7 @@ export default class Component {
const { filename } = compile_options;
- // special case ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂàthe source file doesn't actually get used anywhere. we need
+ // special case — the source file doesn't actually get used anywhere. we need
// to add an empty file to populate map.sources and map.sourcesContent
if (!parts.length) {
compiled.addSource({
@@ -420,7 +420,7 @@ export default class Component {
});
}
- const pattern = /\[ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ(\d+)-(\d+)$/;
+ const pattern = /\[✂(\d+)-(\d+)$/;
parts.forEach((str: string) => {
const chunk = str.replace(pattern, '');
@@ -644,7 +644,7 @@ export default class Component {
script.content.body.forEach((node) => {
if (this.hoistable_nodes.has(node) || this.reactive_declaration_nodes.has(node)) {
- if (a !== b) result += `[ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ${a}-${b}ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ]`;
+ if (a !== b) result += `[✂${a}-${b}✂]`;
a = node.end;
}
@@ -656,7 +656,7 @@ export default class Component {
b = script.content.end;
while (/\s/.test(this.source[b - 1])) b -= 1;
- if (a < b) result += `[ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ${a}-${b}ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ]`;
+ if (a < b) result += `[✂${a}-${b}✂]`;
return result || null;
}
@@ -1107,7 +1107,7 @@ export default class Component {
});
hoistable_nodes.add(node);
- this.fully_hoisted.push(`[ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ${node.start}-${node.end}ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ]`);
+ this.fully_hoisted.push(`[✂${node.start}-${node.end}✂]`);
}
}
@@ -1199,7 +1199,7 @@ export default class Component {
remove_indentation(this.code, node);
- this.fully_hoisted.push(`[ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ${node.start}-${node.end}ÃÂÃÂÃÂÃÂÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ]`);
+ this.fully_hoisted.push(`[✂${node.start}-${node.end}✂]`);
}
}
}
diff --git a/src/compiler/compile/css/Stylesheet.ts b/src/compiler/compile/css/Stylesheet.ts
index 00f35a6122..90c5153ea5 100644
--- a/src/compiler/compile/css/Stylesheet.ts
+++ b/src/compiler/compile/css/Stylesheet.ts
@@ -280,7 +280,7 @@ export default class Stylesheet {
const atrule = new Atrule(node);
stack.push(atrule);
- // this is an awkward special case â @apply (and
+ // this is an awkward special case — @apply (and
// possibly other future constructs)
if (last && !(last instanceof Atrule)) return;
diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts
index 2337890021..b76ca4cc00 100644
--- a/src/compiler/compile/nodes/Element.ts
+++ b/src/compiler/compile/nodes/Element.ts
@@ -150,7 +150,7 @@ export default class Element extends Node {
}
if (this.name === 'option') {
- // Special case â treat these the same way:
+ // Special case — treat these the same way:
//
//
const value_attribute = info.attributes.find(attribute => attribute.name === 'value');
@@ -547,7 +547,7 @@ export default class Element extends Node {
if (type !== 'checkbox') {
let message = `'${name}' binding can only be used with `;
- if (type === 'radio') message += ` â for , use 'group' binding`;
+ if (type === 'radio') message += ` — for , use 'group' binding`;
component.error(binding, { code: `invalid-binding`, message });
}
} else if (name === 'group') {
diff --git a/src/compiler/compile/nodes/shared/Expression.ts b/src/compiler/compile/nodes/shared/Expression.ts
index 92fa418e07..d29e5abe58 100644
--- a/src/compiler/compile/nodes/shared/Expression.ts
+++ b/src/compiler/compile/nodes/shared/Expression.ts
@@ -374,7 +374,7 @@ export default class Expression {
throw new Error(`Well that's odd`);
}
- // TOOD optimisation â if this is an event handler,
+ // TOOD optimisation — if this is an event handler,
// the return value doesn't matter
}
@@ -513,6 +513,6 @@ export default class Expression {
});
}
- return this.rendered = `[âÂÂ${this.node.start}-${this.node.end}âÂÂ]`;
+ return this.rendered = `[✂${this.node.start}-${this.node.end}✂]`;
}
}
diff --git a/src/compiler/compile/render-dom/index.ts b/src/compiler/compile/render-dom/index.ts
index db61b6913a..665c6931b4 100644
--- a/src/compiler/compile/render-dom/index.ts
+++ b/src/compiler/compile/render-dom/index.ts
@@ -369,7 +369,7 @@ export default function dom(
})
.map(n => `$$dirty.${n}`).join(' || ');
- let snippet = `[â${d.node.body.start}-${d.node.end}â]`;
+ let snippet = `[✂${d.node.body.start}-${d.node.end}✂]`;
if (condition) snippet = `if (${condition}) { ${snippet} }`;
if (condition || uses_props) {
diff --git a/src/compiler/compile/render-dom/wrappers/DebugTag.ts b/src/compiler/compile/render-dom/wrappers/DebugTag.ts
index 2d7a2b4618..713113921d 100644
--- a/src/compiler/compile/render-dom/wrappers/DebugTag.ts
+++ b/src/compiler/compile/render-dom/wrappers/DebugTag.ts
@@ -32,7 +32,7 @@ export default class DebugTagWrapper extends Wrapper {
code.overwrite(this.node.start + 1, this.node.start + 7, 'debugger', {
storeName: true
});
- const statement = `[â${this.node.start + 1}-${this.node.start + 7}â];`;
+ const statement = `[✂${this.node.start + 1}-${this.node.start + 7}✂];`;
block.builders.create.add_line(statement);
block.builders.update.add_line(statement);
@@ -41,7 +41,7 @@ export default class DebugTagWrapper extends Wrapper {
code.overwrite(this.node.start + 1, this.node.start + 7, 'log', {
storeName: true
});
- const log = `[â${this.node.start + 1}-${this.node.start + 7}â]`;
+ const log = `[✂${this.node.start + 1}-${this.node.start + 7}✂]`;
const dependencies = new Set();
this.node.expressions.forEach(expression => {
diff --git a/src/compiler/compile/render-dom/wrappers/Fragment.ts b/src/compiler/compile/render-dom/wrappers/Fragment.ts
index cca661d5a6..f2e2ab7a7a 100644
--- a/src/compiler/compile/render-dom/wrappers/Fragment.ts
+++ b/src/compiler/compile/render-dom/wrappers/Fragment.ts
@@ -70,7 +70,7 @@ export default class FragmentWrapper {
throw new Error(`TODO implement ${child.type}`);
}
- // special case â this is an easy way to remove whitespace surrounding
+ // special case — this is an easy way to remove whitespace surrounding
// . lil hacky but it works
if (child.type === 'Window') {
window_wrapper = new Window(renderer, block, parent, child);
diff --git a/src/compiler/compile/render-dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render-dom/wrappers/InlineComponent/index.ts
index 06c757d69e..b1bc3c78c3 100644
--- a/src/compiler/compile/render-dom/wrappers/InlineComponent/index.ts
+++ b/src/compiler/compile/render-dom/wrappers/InlineComponent/index.ts
@@ -262,7 +262,7 @@ export default class InlineComponentWrapper extends Wrapper {
let object;
if (binding.is_contextual && binding.expression.node.type === 'Identifier') {
- // bind:x={y} â we can't just do `y = x`, we need to
+ // bind:x={y} — we can't just do `y = x`, we need to
// to `array[index] = x;
const { name } = binding.expression.node;
const { snippet } = block.bindings.get(name);
@@ -316,7 +316,7 @@ export default class InlineComponentWrapper extends Wrapper {
let lhs = component.source.slice(binding.expression.node.start, binding.expression.node.end).trim();
if (binding.is_contextual && binding.expression.node.type === 'Identifier') {
- // bind:x={y} â we can't just do `y = x`, we need to
+ // bind:x={y} — we can't just do `y = x`, we need to
// to `array[index] = x;
const { name } = binding.expression.node;
const { object, property, snippet } = block.bindings.get(name);
diff --git a/src/compiler/compile/render-dom/wrappers/Title.ts b/src/compiler/compile/render-dom/wrappers/Title.ts
index c9ea478a7a..75dbc44202 100644
--- a/src/compiler/compile/render-dom/wrappers/Title.ts
+++ b/src/compiler/compile/render-dom/wrappers/Title.ts
@@ -28,16 +28,16 @@ export default class TitleWrapper extends Wrapper {
const all_dependencies = new Set();
- // TODO some of this code is repeated in Tag.ts â would be good to
+ // TODO some of this code is repeated in Tag.ts — would be good to
// DRY it out if that's possible without introducing crazy indirection
if (this.node.children.length === 1) {
- // single {tag} â may be a non-string
+ // single {tag} — may be a non-string
// @ts-ignore todo: check this
const { expression } = this.node.children[0];
value = expression.render(block);
add_to_set(all_dependencies, expression.dependencies);
} else {
- // '{foo} {bar}' â treat as string concatenation
+ // '{foo} {bar}' — treat as string concatenation
value =
(this.node.children[0].type === 'Text' ? '' : `"" + `) +
this.node.children
diff --git a/src/compiler/compile/render-dom/wrappers/shared/Wrapper.ts b/src/compiler/compile/render-dom/wrappers/shared/Wrapper.ts
index 0025a5d9f2..60c4a4187b 100644
--- a/src/compiler/compile/render-dom/wrappers/shared/Wrapper.ts
+++ b/src/compiler/compile/render-dom/wrappers/shared/Wrapper.ts
@@ -43,7 +43,7 @@ export default class Wrapper {
}
get_or_create_anchor(block: Block, parent_node: string, parent_nodes: string) {
- // TODO use this in EachBlock and IfBlock â tricky because
+ // TODO use this in EachBlock and IfBlock — tricky because
// children need to be created first
const needs_anchor = this.next ? !this.next.is_dom_node() : !parent_node || !this.parent.is_dom_node();
const anchor = needs_anchor
diff --git a/src/compiler/compile/render-ssr/index.ts b/src/compiler/compile/render-ssr/index.ts
index 74ceaa18da..fd80012981 100644
--- a/src/compiler/compile/render-ssr/index.ts
+++ b/src/compiler/compile/render-ssr/index.ts
@@ -88,7 +88,7 @@ export default function ssr(
: [];
const reactive_declarations = component.reactive_declarations.map(d => {
- let snippet = `[â${d.node.body.start}-${d.node.end}â]`;
+ let snippet = `[✂${d.node.body.start}-${d.node.end}✂]`;
if (d.declaration) {
const declared = extract_names(d.declaration);
diff --git a/src/compiler/parse/state/tag.ts b/src/compiler/parse/state/tag.ts
index 424b14c9fa..d1f1d40199 100644
--- a/src/compiler/parse/state/tag.ts
+++ b/src/compiler/parse/state/tag.ts
@@ -300,7 +300,7 @@ function read_attribute(parser: Parser, unique_names: Set) {
if (type === 'Ref') {
parser.error({
code: `invalid-ref-directive`,
- message: `The ref directive is no longer supported âÃÂàuse \`bind:this={${directive_name}}\` instead`
+ message: `The ref directive is no longer supported — use \`bind:this={${directive_name}}\` instead`
}, start);
}
@@ -485,7 +485,7 @@ export default function tag(parser: Parser) {
element.expression = definition.value[0].expression;
}
- // special cases âÃÂàtop-level