File tree 3 files changed +329
-324
lines changed 3 files changed +329
-324
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
/* eslint no-magic-numbers: [0] */
2
2
3
3
import * as AST from "./ast" ;
4
- import { FTLParserStream } from "./ftlstream " ;
4
+ import { FluentParserStream } from "./stream " ;
5
5
import { ParseError } from "./errors" ;
6
6
7
7
@@ -50,7 +50,7 @@ export default class FluentParser {
50
50
}
51
51
52
52
parse ( source ) {
53
- const ps = new FTLParserStream ( source . replace ( / \r \n / g , "\n" ) ) ;
53
+ const ps = new FluentParserStream ( source ) ;
54
54
ps . skipBlankBlock ( ) ;
55
55
56
56
const entries = [ ] ;
@@ -107,7 +107,7 @@ export default class FluentParser {
107
107
* themselves, in which case Junk for the invalid comment is returned.
108
108
*/
109
109
parseEntry ( source ) {
110
- const ps = new FTLParserStream ( source . replace ( / \r \n / g , "\n" ) ) ;
110
+ const ps = new FluentParserStream ( source ) ;
111
111
ps . skipBlankBlock ( ) ;
112
112
113
113
while ( ps . currentChar === "#" ) {
You can’t perform that action at this time.
0 commit comments