Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Add atom type for tokenizeLine
Browse files Browse the repository at this point in the history
Reviewed By: evangrayk

Differential Revision: D10021604

fbshipit-source-id: 537dbb6ab9139ae90a4effe6d4a2a185af4b32a5
  • Loading branch information
TJ Ryan authored and facebook-github-bot committed Oct 1, 2018
1 parent 505e45b commit da71fe5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flow-libs/atom.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,13 @@ declare class atom$Grammar {
name: string,
scopeName: string,
tokenizeLines(text: string): Array<Array<atom$GrammarToken>>,
tokenizeLine(line: string, ruleStack: mixed, firstLine: boolean): {
line: string,
tags: Array<number>,
// Dynamic property: invoking it will incur additional overhead
tokens: Array<atom$GrammarToken>,
ruleStack: mixed
},
}

type atom$GrammarToken = {
Expand Down

0 comments on commit da71fe5

Please sign in to comment.