Home | History | Annotate | Download | only in editing

Lines Matching refs:Grammar

256         // Iterate through the search range by paragraphs, checking each one for spelling and grammar.
291 // We can't stop after the first grammar result, since there might still be a spelling result after
292 // it begins but before the first detail in it, but we can stop if we find a second grammar result.
359 // Found some bad grammar. Find the earliest detail range that starts in our search range (if any).
380 badGrammarRange->startContainer(ec)->document()->markers()->addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription);
415 // Expand the search range to encompass entire paragraphs, since grammar checking needs that much context.
437 // Found some bad grammar. Find the earliest detail range that starts in our search range (if any).
474 // Returns true only if the passed range exactly corresponds to a bad grammar detail range. This is analogous
475 // to isSelectionMisspelled. It's not good enough for there to be some bad grammar somewhere in the range,
483 // No bad grammar in these parts at all.
487 // Bad grammar, but phrase (e.g. sentence) starts beyond start of range.
493 // Bad grammar, but start of detail (e.g. ungrammatical word) doesn't match start of range
497 // Bad grammar at start of range, but end of bad grammar is before or after end of range
504 // or a grammar error.