mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
20 lines
473 B
JavaScript
20 lines
473 B
JavaScript
"use strict";
|
|
|
|
class ParsingContext {
|
|
constructor(includeNoteContent) {
|
|
this.includeNoteContent = includeNoteContent;
|
|
this.highlightedTokens = [];
|
|
this.fuzzyAttributeSearch = false;
|
|
this.error = null;
|
|
}
|
|
|
|
addError(error) {
|
|
// we record only the first error, subsequent ones are usually consequence of the first
|
|
if (!this.error) {
|
|
this.error = error;
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = ParsingContext;
|