@@ -3,7 +3,9 @@ use std::ops::Range;
33use glass_easel_template_compiler:: parse:: {
44 expr:: Expression ,
55 tag:: {
6- ClassAttribute , Comment , CommonElementAttributes , Element , ElementKind , Ident , Node , NormalAttributePrefix , Script , StaticAttribute , StrName , StyleAttribute , TagLocation , UnknownMetaTag , Value
6+ ClassAttribute , Comment , CommonElementAttributes , Element , ElementKind , Ident , Node ,
7+ NormalAttributePrefix , Script , StaticAttribute , StrName , StyleAttribute , TagLocation ,
8+ UnknownMetaTag , Value ,
79 } ,
810 Position , Template ,
911} ;
@@ -372,7 +374,9 @@ pub(crate) fn find_token_in_position(template: &Template, pos: Position) -> Toke
372374 }
373375 return Token :: AttributeName ( & attr. name , elem) ;
374376 }
375- if let Some ( ret) = find_in_option_value ( & attr. value , pos, scopes) {
377+ if let Some ( ret) =
378+ find_in_option_value ( & attr. value , pos, scopes)
379+ {
376380 if let Token :: StaticValuePart ( loc, v) = ret {
377381 return Token :: AttributeStaticValue (
378382 loc, v, & attr. name , elem,
@@ -385,7 +389,9 @@ pub(crate) fn find_token_in_position(template: &Template, pos: Position) -> Toke
385389 if ident_contains ( & attr. name , pos) {
386390 return Token :: AttributeName ( & attr. name , elem) ;
387391 }
388- if let Some ( ret) = find_in_option_value ( & attr. value , pos, scopes) {
392+ if let Some ( ret) =
393+ find_in_option_value ( & attr. value , pos, scopes)
394+ {
389395 if let Token :: StaticValuePart ( loc, v) = ret {
390396 return Token :: AttributeStaticValue (
391397 loc, v, & attr. name , elem,
@@ -639,7 +645,9 @@ pub(crate) fn find_token_in_position(template: &Template, pos: Position) -> Toke
639645 if ident_contains ( & attr. name , pos) {
640646 return Token :: SlotValueDefinition ( & attr. name ) ;
641647 }
642- if let Some ( ret) = find_in_option_value ( & attr. value , pos, scopes) {
648+ if let Some ( ret) =
649+ find_in_option_value ( & attr. value , pos, scopes)
650+ {
643651 return ret;
644652 }
645653 }
0 commit comments