mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Use noSpellCheckProp NodeProp to exclude node types from spell check (#21335)
GitOrigin-RevId: 91ba72285b0f01c3c00fdb1a64c30e9ff67f72f5
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { NodeProp } from '@lezer/common'
|
||||
|
||||
/**
|
||||
* A node prop that contains an array, each item of which is an array of parent node types that's
|
||||
* passed to [matchContext](https://lezer.codemirror.net/docs/ref/#common.SyntaxNodeRef.matchContext)
|
||||
* to test whether the node matches the given context. If so, the text in the node is excluded from spell checking.
|
||||
* An empty string is treated as a wildcard, so `[['']]` indicates that the node type should always be excluded.
|
||||
*/
|
||||
export const noSpellCheckProp = new NodeProp<string[][]>()
|
||||
Reference in New Issue
Block a user