We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cb40a commit dfc2ae5Copy full SHA for dfc2ae5
fluent-syntax/src/parser.js
@@ -309,6 +309,13 @@ export default class FluentParser {
309
return new AST.Identifier(name);
310
}
311
312
+ getTermIdentifier(ps) {
313
+ ps.expectChar("-");
314
+ const id = this.getIdentifier(ps);
315
+ return new AST.Identifier(`-${id.name}`);
316
+
317
+ }
318
319
getVariantKey(ps) {
320
const ch = ps.current();
321
@@ -794,11 +801,4 @@ export default class FluentParser {
794
801
795
802
throw new ParseError("E0014");
796
803
797
-
798
- getTermIdentifier(ps) {
799
- ps.expectChar("-");
800
- const id = this.getIdentifier(ps);
- return new AST.Identifier(`-${id.name}`);
- }
804
0 commit comments