Skip to content

Commit a935998

Browse files
author
lawvs
authored
chore: better comment hovers preview [ci skip] (vuejs#1612)
1 parent 341b30c commit a935998

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/compiler-core/src/options.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ import { ParserPlugin } from '@babel/parser'
1010

1111
export interface ParserOptions {
1212
/**
13-
* e.g. platform native elements, e.g. <div> for browsers
13+
* e.g. platform native elements, e.g. `<div>` for browsers
1414
*/
1515
isNativeTag?: (tag: string) => boolean
1616
/**
17-
* e.g. native elements that can self-close, e.g. <img>, <br>, <hr>
17+
* e.g. native elements that can self-close, e.g. `<img>`, `<br>`, `<hr>`
1818
*/
1919
isVoidTag?: (tag: string) => boolean
2020
/**
21-
* e.g. elements that should preserve whitespace inside, e.g. <pre>
21+
* e.g. elements that should preserve whitespace inside, e.g. `<pre>`
2222
*/
2323
isPreTag?: (tag: string) => boolean
2424
/**
25-
* Platform-specific built-in components e.g. <Transition>
25+
* Platform-specific built-in components e.g. `<Transition>`
2626
*/
2727
isBuiltInComponent?: (tag: string) => symbol | void
2828
/**
@@ -127,7 +127,7 @@ export interface TransformOptions {
127127
*/
128128
ssr?: boolean
129129
/**
130-
* SFC <style vars> injection string
130+
* SFC `<style vars>` injection string
131131
* needed to render inline CSS variables on component root
132132
*/
133133
ssrCssVars?: string

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ function genRuntimeEmits(emits: Set<string>) {
876876
}
877877

878878
/**
879-
* export default {} inside <script setup> cannot access variables declared
879+
* export default {} inside `<script setup>` cannot access variables declared
880880
* inside since it's hoisted. Walk and check to make sure.
881881
*/
882882
function checkDefaultExport(

packages/runtime-core/src/helpers/renderSlot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { PatchFlags, SlotFlags } from '@vue/shared'
1111
import { warn } from '../warning'
1212

1313
/**
14-
* Compiler runtime helper for rendering <slot/>
14+
* Compiler runtime helper for rendering `<slot/>`
1515
* @private
1616
*/
1717
export function renderSlot(

packages/shared/src/slotFlags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const enum SlotFlags {
1212
*/
1313
DYNAMIC = 2,
1414
/**
15-
* <slot/> being forwarded into a child component. Whether the parent needs
15+
* `<slot/>` being forwarded into a child component. Whether the parent needs
1616
* to update the child is dependent on what kind of slots the parent itself
1717
* received. This has to be refined at runtime, when the child's vnode
1818
* is being created (in `normalizeChildren`)

0 commit comments

Comments
 (0)