summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-08-30 19:26:45 +0300
committerRasmus Andersson <rasmus@notion.se>2018-08-30 19:26:45 +0300
commit4deb25224198db6bd72293f6cadafe08c443ae99 (patch)
tree006b7a301be80c9c09ecde586fd659a27ab7e611 /src
parent4736bcc4f112602b047c3c7ae962203db89494a1 (diff)
downloadinter-4deb25224198db6bd72293f6cadafe08c443ae99.tar.xz
fixup features
Diffstat (limited to 'src')
-rw-r--r--src/features.fea7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/features.fea b/src/features.fea
index 4a0db3bdf..97865464b 100644
--- a/src/features.fea
+++ b/src/features.fea
@@ -724,9 +724,10 @@ feature calt {
sub @CASE_L' @CASE_L @CASE_L @UC by @CASE_R;
# y' y Z -> x y Z
sub @CASE_L' @CASE_L @UC by @CASE_R;
-
- sub [ @UC @CASE_R ] @CASE_L' by @CASE_R;
- ignore sub @LC @CASE_NONDELIM_L' @UC;
+
+ sub [ @UC @CASE_R ] @CASE_L' by @CASE_R; # Z y' -> Z x -> Z x 'y -> Z x x ...
+ ignore sub @LC @CASE_NONDELIM_L' @UC; # e.g. m multiply M
+ sub @CASE_L' @UC by @CASE_R; # y' Z -> x Z
sub @CASE_DELIM_L' @CASE_DELIM_L [ @CASE_R @UC ] by @CASE_DELIM_R;