Skip to content

StringStream

Unofficial

Encapsulates a single line of input. Given to stream syntax code, which uses it to tokenize the content.

Import:

import type { StringStream } from '@codemirror/language';

Signature:

export interface StringStream

Methods

Method Returns Description
lookAhead(n) string Look ahead n lines from the current position and return the content.