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
BUG: The CotEditor swift syntax highlighting is not correct for extended regex literal syntax. The issue is easy to see with the quotation character(s) inside the /# #/ regex literal syntax. However, this may be more an issue with the #/…/# swift regex syntax in general.
To Reproduce
Create a swift file which includes extended regex literal which include a quotation character as part of the #/…/# Swift extended regex literal pattern. For example:
s0 = s0.replacing(#/\n([a-zA-Z*"'–])/#){ m inreturn"\(m.1)" // indent body below heading link
}
// Main:
if logit.logLevel ==.debug {writeCheckpoint(s1, base: urlBase, ext:"4a_part.md")}
Observe the resulting syntax highlighting.
Expected behavior
CotEditor highlighting was not expected:
Xcode highlighted as expected. The same section of code is highlighted in Xcode correctly as shown below:
CotEditor version
5.0.8 (692)
macOS version
15.2
Additional context
No response
The text was updated successfully, but these errors were encountered:
Description
BUG: The CotEditor swift syntax highlighting is not correct for extended regex literal syntax. The issue is easy to see with the quotation character(s) inside the /# #/ regex literal syntax. However, this may be more an issue with the
#/…/#
swift regex syntax in general.To Reproduce
Create a swift file which includes extended regex literal which include a quotation character as part of the
#/…/#
Swift extended regex literal pattern. For example:Observe the resulting syntax highlighting.
Expected behavior
CotEditor highlighting was not expected:
Xcode highlighted as expected. The same section of code is highlighted in Xcode correctly as shown below:
CotEditor version
5.0.8 (692)
macOS version
15.2
Additional context
No response
The text was updated successfully, but these errors were encountered: