mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
npm update
This commit is contained in:
parent
0cdd3e9fee
commit
4696ba952f
1437 changed files with 32727 additions and 1248226 deletions
69
node_modules/@codemirror/language/dist/index.d.ts
generated
vendored
69
node_modules/@codemirror/language/dist/index.d.ts
generated
vendored
|
@ -1,7 +1,7 @@
|
|||
import { NodeProp, Parser, Tree, TreeFragment, SyntaxNode, NodeType } from '@lezer/common';
|
||||
import { NodeProp, SyntaxNode, Parser, Tree, Input, TreeFragment, NodeType } from '@lezer/common';
|
||||
import { LRParser, ParserConfig } from '@lezer/lr';
|
||||
import * as _codemirror_state from '@codemirror/state';
|
||||
import { Facet, Extension, EditorState, StateField, Range } from '@codemirror/state';
|
||||
import { Facet, EditorState, Extension, Text, StateField, Range } from '@codemirror/state';
|
||||
import { EditorView, DecorationSet, Command, KeyBinding, ViewUpdate, BlockInfo, Decoration } from '@codemirror/view';
|
||||
import { Highlighter, Tag } from '@lezer/highlight';
|
||||
import { StyleModule, StyleSpec } from 'style-mod';
|
||||
|
@ -31,6 +31,44 @@ declare function defineLanguageFacet(baseData?: {
|
|||
[name: string]: any;
|
||||
}[]>;
|
||||
/**
|
||||
Some languages need to return different [language
|
||||
data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) for some parts of their
|
||||
tree. Sublanguages, registered by adding a [node
|
||||
prop](https://codemirror.net/6/docs/ref/#language.sublanguageProp) to the language's top syntax
|
||||
node, provide a mechanism to do this.
|
||||
|
||||
(Note that when using nested parsing, where nested syntax is
|
||||
parsed by a different parser and has its own top node type, you
|
||||
don't need a sublanguage.)
|
||||
*/
|
||||
interface Sublanguage {
|
||||
/**
|
||||
Determines whether the data provided by this sublanguage should
|
||||
completely replace the regular data or be added to it (with
|
||||
higher-precedence). The default is `"extend"`.
|
||||
*/
|
||||
type?: "replace" | "extend";
|
||||
/**
|
||||
A predicate that returns whether the node at the queried
|
||||
position is part of the sublanguage.
|
||||
*/
|
||||
test: (node: SyntaxNode, state: EditorState) => boolean;
|
||||
/**
|
||||
The language data facet that holds the sublanguage's data.
|
||||
You'll want to use
|
||||
[`defineLanguageFacet`](https://codemirror.net/6/docs/ref/#language.defineLanguageFacet) to create
|
||||
this.
|
||||
*/
|
||||
facet: Facet<{
|
||||
[name: string]: any;
|
||||
}>;
|
||||
}
|
||||
/**
|
||||
Syntax node prop used to register sublanguages. Should be added to
|
||||
the top level node type for the language.
|
||||
*/
|
||||
declare const sublanguageProp: NodeProp<Sublanguage[]>;
|
||||
/**
|
||||
A language object manages parsing and per-language
|
||||
[metadata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt). Parse data is
|
||||
managed as a [Lezer](https://lezer.codemirror.net) tree. The class
|
||||
|
@ -174,6 +212,26 @@ is no language parser enabled.
|
|||
*/
|
||||
declare function syntaxParserRunning(view: EditorView): boolean;
|
||||
/**
|
||||
Lezer-style
|
||||
[`Input`](https://lezer.codemirror.net/docs/ref#common.Input)
|
||||
object for a [`Text`](https://codemirror.net/6/docs/ref/#state.Text) object.
|
||||
*/
|
||||
declare class DocInput implements Input {
|
||||
readonly doc: Text;
|
||||
private cursor;
|
||||
private cursorPos;
|
||||
private string;
|
||||
/**
|
||||
Create an input object for the given document.
|
||||
*/
|
||||
constructor(doc: Text);
|
||||
get length(): number;
|
||||
private syncTo;
|
||||
chunk(pos: number): string;
|
||||
get lineChunks(): boolean;
|
||||
read(from: number, to: number): string;
|
||||
}
|
||||
/**
|
||||
A parse context provided to parsers working on the editor content.
|
||||
*/
|
||||
declare class ParseContext {
|
||||
|
@ -529,6 +587,11 @@ declare class TreeIndentContext extends IndentContext {
|
|||
*/
|
||||
get baseIndent(): number;
|
||||
/**
|
||||
Get the indentation for the reference line of the given node
|
||||
(see [`baseIndent`](https://codemirror.net/6/docs/ref/#language.TreeIndentContext.baseIndent)).
|
||||
*/
|
||||
baseIndentFor(node: SyntaxNode): number;
|
||||
/**
|
||||
Continue looking for indentations in the node's parent nodes,
|
||||
and return the result of that.
|
||||
*/
|
||||
|
@ -1119,4 +1182,4 @@ declare class StreamLanguage<State> extends Language {
|
|||
get allowsNesting(): boolean;
|
||||
}
|
||||
|
||||
export { Config, HighlightStyle, IndentContext, LRLanguage, Language, LanguageDescription, LanguageSupport, MatchResult, ParseContext, StreamLanguage, StreamParser, StringStream, TagStyle, TreeIndentContext, bracketMatching, bracketMatchingHandle, codeFolding, continuedIndent, defaultHighlightStyle, defineLanguageFacet, delimitedIndent, ensureSyntaxTree, flatIndent, foldAll, foldCode, foldEffect, foldGutter, foldInside, foldKeymap, foldNodeProp, foldService, foldState, foldable, foldedRanges, forceParsing, getIndentUnit, getIndentation, highlightingFor, indentNodeProp, indentOnInput, indentRange, indentService, indentString, indentUnit, language, languageDataProp, matchBrackets, syntaxHighlighting, syntaxParserRunning, syntaxTree, syntaxTreeAvailable, toggleFold, unfoldAll, unfoldCode, unfoldEffect };
|
||||
export { Config, DocInput, HighlightStyle, IndentContext, LRLanguage, Language, LanguageDescription, LanguageSupport, MatchResult, ParseContext, StreamLanguage, StreamParser, StringStream, Sublanguage, TagStyle, TreeIndentContext, bracketMatching, bracketMatchingHandle, codeFolding, continuedIndent, defaultHighlightStyle, defineLanguageFacet, delimitedIndent, ensureSyntaxTree, flatIndent, foldAll, foldCode, foldEffect, foldGutter, foldInside, foldKeymap, foldNodeProp, foldService, foldState, foldable, foldedRanges, forceParsing, getIndentUnit, getIndentation, highlightingFor, indentNodeProp, indentOnInput, indentRange, indentService, indentString, indentUnit, language, languageDataProp, matchBrackets, sublanguageProp, syntaxHighlighting, syntaxParserRunning, syntaxTree, syntaxTreeAvailable, toggleFold, unfoldAll, unfoldCode, unfoldEffect };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue