You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The syntax highlighting is performed as operations in a NSOperationQueue. JLTokenPattern does dispatch_async to the main queue before adding the attribute to the textStorage, so calling -waitUntilFinished on the operationQueue is not helpful.
Could probably be solved in a hacky way, but thinking about reimplementing the JLScopeDelegate, moving add-attribute-to-textStorage-logic to the tokenizer, and adding some queue-logic-things there.
The text was updated successfully, but these errors were encountered:
The syntax highlighting is performed as operations in a
NSOperationQueue
.JLTokenPattern
doesdispatch_async
to the main queue before adding the attribute to the textStorage, so calling-waitUntilFinished
on the operationQueue is not helpful.Could probably be solved in a hacky way, but thinking about reimplementing the
JLScopeDelegate
, moving add-attribute-to-textStorage-logic to the tokenizer, and adding some queue-logic-things there.The text was updated successfully, but these errors were encountered: