I have created my snippets in texmath.snippets
as:
priority -50
snippet \d "dot" Aw
\dot{$1}
endsnippet
snippet ^^ "superscript" A
^{$1}
endsnippet
snippet __ "subscript" A
_{$1}
endsnippet
The problem is, ^^
and __
works only when preceeded by a space, like w
options in Ultisnips. But, as you can see, there is no w
, so this should not be in word limit.
But, still, in latex, $H__$
doesn't expands to $H_{}$
, while $H __$
does properly.
What I am doing wrong here?
I am using Ultisnips
as snippet engine. This texmath.snippets
structure is following honza/snippets