Bug: incorrect Swift 5.7+ syntax highlighting related to extended regex literals #1795
Labels
better to fix
unwanted behaviors better to fix
syntax highlight
issues related to syntax highlighting
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: