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
This would only require a change in commentBody() in Clang+SourceKitten.swift (as best as I can tell!).
Two different scenarios that would be good to support:
Individual @c Word Highlighting
And:
Highlighting an entire codeblock:
@code
print("Hello world!")
@endcode
The first should be implementable via regex / wrapping the targeted word in backticks.
The second can be rougly implemented by just replacing @code and @endcode with triple-backticks, though this would result in different results from Xcode in some scenarios (most of which should be considered error scenarios already / even cause warnings in Xcode, essentially in situations where the keywords are in a different order or count than expected).
The text was updated successfully, but these errors were encountered:
I have a basic implementation of the above strategy locally & will open a PR in a bit, but definitely happy to talk about the change here, including any other ways of tackling this!
This would only require a change in commentBody() in
Clang+SourceKitten.swift
(as best as I can tell!).Two different scenarios that would be good to support:
And:
The first should be implementable via regex / wrapping the targeted word in backticks.
The second can be rougly implemented by just replacing
@code
and@endcode
with triple-backticks, though this would result in different results from Xcode in some scenarios (most of which should be considered error scenarios already / even cause warnings in Xcode, essentially in situations where the keywords are in a different order or count than expected).The text was updated successfully, but these errors were encountered: