Skip to content

Commit

Permalink
Support falling-tone modals in Boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Jul 19, 2024
1 parent 5384b61 commit e4c1044
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modes/boxes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Boxifier {

private isOvertCp(tree: Tree) {
return (
tree.label === 'CP' ||
(tree.label === 'CP' && 'left' in tree) ||
(tree.label === 'CPrel' &&
'left' in tree &&
'word' in tree.left &&
Expand Down
3 changes: 2 additions & 1 deletion src/tree/productions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ export function makeT1ModalvP([modal, tp]: [Tree, Tree]) {
label: "𝘷'",
left: {
label: '𝘷',
word: { covert: true, value: 'BE', source: '' },
word: { covert: true, value: 'BE' },
source: '',
},
right: tp,
source: tp.source,
Expand Down

0 comments on commit e4c1044

Please sign in to comment.