node-props.ts 538 B

123456789
  1. import { NodeProp } from '@lezer/common'
  2. /**
  3. * A node prop that contains an array, each item of which is an array of parent node types that's
  4. * passed to [matchContext](https://lezer.codemirror.net/docs/ref/#common.SyntaxNodeRef.matchContext)
  5. * to test whether the node matches the given context. If so, the text in the node is excluded from spell checking.
  6. * An empty string is treated as a wildcard, so `[['']]` indicates that the node type should always be excluded.
  7. */
  8. export const noSpellCheckProp = new NodeProp<string[][]>()