Skip to content

Commit

Permalink
Fonsi made a PR to codemirror and we need that! (#9)
Browse files Browse the repository at this point in the history
* :O

* 0.28.2
  • Loading branch information
dralletje authored Nov 15, 2022
1 parent 1b16986 commit db6933d
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 93 deletions.
12 changes: 12 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,18 @@ declare class EditorState {
/**
Find the values for a given language data field, provided by the
the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
Examples of language data fields are...
- [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
comment syntax.
- [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
for providing language-specific completion sources.
- [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
characters that should be considered part of words in this
language.
- [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
bracket closing behavior.
*/
languageDataAt<T>(name: string, pos: number, side?: -1 | 0 | 1): readonly T[];
/**
Expand Down
Loading

0 comments on commit db6933d

Please sign in to comment.