Change lineBreaks property of Token to number

This commit is contained in:
coolreader18
2018-10-19 20:22:05 -05:00
committed by GitHub
parent 0e95a07e46
commit 24c431b36b
+1 -1
View File
@@ -22,7 +22,7 @@ export interface Rule {
* It will track line numbers, as long as you apply the `lineBreaks: true`
* option to any tokens which might contain newlines. Moo will try to warn you if you forget to do this.
*/
lineBreaks?: boolean;
lineBreaks?: number;
/**
* Moves the lexer to a new state, and pushes the old state onto the stack.
*/