@@ -2354,7 +2354,7 @@ def __init__(self):
2354
2354
p .simple = Forward ()
2355
2355
p .simple_group = Forward ()
2356
2356
p .single_symbol = Forward ()
2357
- p .snowflake = Forward ()
2357
+ p .accentprefixed = Forward ()
2358
2358
p .space = Forward ()
2359
2359
p .sqrt = Forward ()
2360
2360
p .stackrel = Forward ()
@@ -2391,7 +2391,7 @@ def __init__(self):
2391
2391
p .single_symbol <<= Regex (
2392
2392
r"([a-zA-Z0-9 +\-*/<>=:,.;!\?&'@()\[\]|%s])|(\\[%%${}\[\]_|])" %
2393
2393
unicode_range )
2394
- p .snowflake <<= Suppress (p .bslash ) + oneOf (self ._snowflake )
2394
+ p .accentprefixed <<= Suppress (p .bslash ) + oneOf (self ._accentprefixed )
2395
2395
p .symbol_name <<= (
2396
2396
Combine (p .bslash + oneOf (list (tex2uni )))
2397
2397
+ FollowedBy (Regex ("[^A-Za-z]" ).leaveWhitespace () | StringEnd ())
@@ -2494,8 +2494,8 @@ def __init__(self):
2494
2494
)
2495
2495
2496
2496
p .placeable <<= (
2497
- p .snowflake # Must be before accent so named symbols that are
2498
- # prefixed with an accent name work
2497
+ p .accentprefixed # Must be before accent so named symbols that are
2498
+ # prefixed with an accent name work
2499
2499
| p .accent # Must be before symbol as all accents are symbols
2500
2500
| p .symbol # Must be third to catch all named symbols and single
2501
2501
# chars not in a group
@@ -2742,7 +2742,7 @@ def symbol(self, s, loc, toks):
2742
2742
do_kern = True )]
2743
2743
return [char ]
2744
2744
2745
- snowflake = symbol
2745
+ accentprefixed = symbol
2746
2746
2747
2747
def unknown_symbol (self , s , loc , toks ):
2748
2748
c = toks [0 ]
@@ -2816,9 +2816,10 @@ def c_over_c(self, s, loc, toks):
2816
2816
_wide_accents = set (r"widehat widetilde widebar" .split ())
2817
2817
2818
2818
# make a lambda and call it to get the namespace right
2819
- _snowflake = (lambda am : [p for p in tex2uni if
2820
- any (p .startswith (a ) and a != p for a in am )])(
2821
- set (_accent_map ))
2819
+ _accentprefixed = (lambda am : [
2820
+ p for p in tex2uni
2821
+ if any (p .startswith (a ) and a != p for a in am )
2822
+ ])(set (_accent_map ))
2822
2823
2823
2824
def accent (self , s , loc , toks ):
2824
2825
assert len (toks ) == 1
0 commit comments