mirror of
https://github.com/helix-editor/helix
synced 2026-07-30 12:13:24 +02:00
12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
function add(a: number): number {
|
|
// ^ @function
|
|
// ^ @variable.parameter
|
|
// ^ @type.builtin
|
|
return a + 1;
|
|
}
|
|
const el = <Foo bar={add(2)}>hi</Foo>;
|
|
// ^ @constructor
|
|
// ^ @attribute
|
|
// ^ @function
|
|
// ^ @constructor
|