@@ -86,9 +86,6 @@ inheritval = whitespace, ':'?, symbol ;
8686```
8787"""
8888macro styled_str (raw_content:: String )
89- println (" styled_str" )
90- println (raw_content)
91- println (" begin" )
9289 # ------------------
9390 # Helper functions
9491 # ------------------
@@ -112,10 +109,6 @@ macro styled_str(raw_content::String)
112109 end =#
113110
114111 # Instead we'll just use a `NamedTuple`
115- println (" repr" )
116- println (repr (raw_content))
117- println (" hash" )
118- println (hash (raw_content))
119112 state = let content = unescape_string (raw_content, (' {' , ' }' , ' :' , ' $' , ' \n ' , ' \r ' ))
120113 (; content, bytes = Vector {UInt8} (content),
121114 s = Iterators. Stateful (zip (eachindex (content), content)),
@@ -671,17 +664,15 @@ macro styled_str(raw_content::String)
671664 # ------------------
672665 # The actual body of the macro
673666 # ------------------
674- println ( " begin run " )
667+
675668 run_state_machine! (state)
676- result = if ! isempty (state. errors)
669+ if ! isempty (state. errors)
677670 throw (MalformedStylingMacro (state. content, state. errors))
678671 elseif state. interpolated[]
679672 :(annotatedstring ($ (state. parts... )))
680673 else
681674 annotatedstring (map (hygienic_eval, state. parts)... ) |> Base. annotatedstring_optimize!
682675 end
683- println (" end run, end" )
684- result
685676end
686677
687678struct MalformedStylingMacro <: Exception
0 commit comments