mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 13:34:24 -05:00
perf(snip): make use of custom wordtrig
This commit is contained in:
@@ -121,9 +121,9 @@ return {
|
|||||||
500
|
500
|
||||||
),
|
),
|
||||||
snip(
|
snip(
|
||||||
'([^\\w])(' .. trigger_index_pre .. ')' .. '(' .. trigger_index_post .. ')([^\\w])',
|
'(' .. trigger_index_pre .. ')' .. '(' .. trigger_index_post .. ')([^\\w])',
|
||||||
'<><><>',
|
'<><>',
|
||||||
{ cap(1), d(1, get_index, {}, { user_args = { 2, 3 } }), d(2, prepend_space, {}, { user_args = { 4 } }) },
|
{ d(1, get_index, {}, { user_args = { 1, 2 } }), d(2, prepend_space, {}, { user_args = { 3 } }) },
|
||||||
math,
|
math,
|
||||||
200
|
200
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ return {
|
|||||||
snip('ge', '>>= ', {}, math),
|
snip('ge', '>>= ', {}, math),
|
||||||
|
|
||||||
-- operators
|
-- operators
|
||||||
snip('ak([^k ])', '+ <>', { cap(1) }, math, 100),
|
snip('ak([^k ])', '+ <>', { cap(1) }, math, 100, false),
|
||||||
snip('sk([^k ])', '- <>', { cap(1) }, math, 100),
|
snip('sk([^k ])', '- <>', { cap(1) }, math, 100, false),
|
||||||
snip('oak', 'plus.circle ', {}, math),
|
snip('oak', 'plus.circle ', {}, math),
|
||||||
snip('bak', 'plus.square ', {}, math),
|
snip('bak', 'plus.square ', {}, math),
|
||||||
snip('mak', 'plus.minus ', {}, math),
|
snip('mak', 'plus.minus ', {}, math),
|
||||||
@@ -66,11 +66,11 @@ return {
|
|||||||
snip('ep', 'exp(<>) ', { i(1, '1') }, math),
|
snip('ep', 'exp(<>) ', { i(1, '1') }, math),
|
||||||
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
|
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
|
||||||
snip('(K|M|N|Q|R|S|Z)([\\dn]) ', '<><>^<> ', { cap(1), cap(1), cap(2) }, math),
|
snip('(K|M|N|Q|R|S|Z)([\\dn]) ', '<><>^<> ', { cap(1), cap(1), cap(2) }, math),
|
||||||
snip('(.*)iv', '<>^(-1) ', { cap(1) }, math),
|
snip('iv', '^(-1) ', {}, math, 500, false),
|
||||||
snip('(.*)sr', '<>^2 ', { cap(1) }, math),
|
snip('sr', '^2 ', {}, math, 500, false),
|
||||||
snip('(.*)cb', '<>^3 ', { cap(1) }, math),
|
snip('cb', '^3 ', {}, math, 500, false),
|
||||||
snip('(.*)jj', '<>_(<>) ', { cap(1), i(1, 'n') }, math),
|
snip('jj', '_(<>) ', { i(1, 'n') }, math, 500, false),
|
||||||
snip('(.*)kk', '<>^(<>) ', { cap(1), i(1, 'n') }, math),
|
snip('kk', '^(<>) ', { i(1, 'n') }, math, 500, false),
|
||||||
|
|
||||||
snip('ddx', '(d <>)(d <>) ', { i(1, 'f'), i(2, 'x') }, math),
|
snip('ddx', '(d <>)(d <>) ', { i(1, 'f'), i(2, 'x') }, math),
|
||||||
snip('it', 'integral ', {}, math, 900),
|
snip('it', 'integral ', {}, math, 900),
|
||||||
|
|||||||
Reference in New Issue
Block a user