🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
40
node_modules/vscode-textmate/release/registry.d.ts
generated
vendored
Normal file
40
node_modules/vscode-textmate/release/registry.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import { BalancedBracketSelectors, IGrammarRepository, IThemeProvider } from './grammar';
|
||||
import { IRawGrammar } from './rawGrammar';
|
||||
import { IGrammar, IEmbeddedLanguagesMap, ITokenTypeMap } from './main';
|
||||
import { ScopeStack, Theme, StyleAttributes, ScopeName } from './theme';
|
||||
import { IOnigLib } from './onigLib';
|
||||
export declare class SyncRegistry implements IGrammarRepository, IThemeProvider {
|
||||
private readonly _onigLibPromise;
|
||||
private readonly _grammars;
|
||||
private readonly _rawGrammars;
|
||||
private readonly _injectionGrammars;
|
||||
private _theme;
|
||||
constructor(theme: Theme, _onigLibPromise: Promise<IOnigLib>);
|
||||
dispose(): void;
|
||||
setTheme(theme: Theme): void;
|
||||
getColorMap(): string[];
|
||||
/**
|
||||
* Add `grammar` to registry and return a list of referenced scope names
|
||||
*/
|
||||
addGrammar(grammar: IRawGrammar, injectionScopeNames?: ScopeName[]): void;
|
||||
/**
|
||||
* Lookup a raw grammar.
|
||||
*/
|
||||
lookup(scopeName: ScopeName): IRawGrammar | undefined;
|
||||
/**
|
||||
* Returns the injections for the given grammar
|
||||
*/
|
||||
injections(targetScope: ScopeName): ScopeName[];
|
||||
/**
|
||||
* Get the default theme settings
|
||||
*/
|
||||
getDefaults(): StyleAttributes;
|
||||
/**
|
||||
* Match a scope in the theme.
|
||||
*/
|
||||
themeMatch(scopePath: ScopeStack): StyleAttributes | null;
|
||||
/**
|
||||
* Lookup a grammar.
|
||||
*/
|
||||
grammarForScopeName(scopeName: ScopeName, initialLanguage: number, embeddedLanguages: IEmbeddedLanguagesMap | null, tokenTypes: ITokenTypeMap | null, balancedBracketSelectors: BalancedBracketSelectors | null): Promise<IGrammar | null>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue