googlefonts / googlefonts/fontc
[fea-rs] Support inline contextual positionals
- Dominant language
- Rust
- Stars
- 193
- Forks
- 21
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 65
Description
Here's an example from the AFDKO spec:
```
markClass sukun @TOP_CLASS;
lookup MARK_POS {
position base lam_meem_jeem' mark @TOP_CLASS alef;
} MARK_POS;
```
This causes:
```
error: Expected ';'
in foo.fea at 4:31
|
4 | position base lam_meem_jeem' mark @TOP_CLASS alef;
| ^
error: ''' Not valid in a lookup block
in foo.fea at 4:31
|
4 | position base lam_meem_jeem' mark @TOP_CLASS alef;
| ^
error: Expected = found ID
in foo.fea at 4:67
|
4 | position base lam_meem_jeem' mark @TOP_CLASS alef;
| ^^^^
error: Expected named glyph class or '['.
in foo.fea at 4:71
|
4 | position base lam_meem_jeem' mark @TOP_CLASS alef;
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue identifies fea-rs but names no file or test. Start by reproducing the AFDKO example and tracing the parser errors for the inline contextual positional; done means the example parses without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100