Skip to content

I have many invalid // comments in Strings files, is there a quick fix? #16

Answered by Jeehut
Jeehut asked this question in Help / FAQ
Discussion options

You must be logged in to vote

While Xcode seems to support // comments right now, we can't be sure if this will continue to work in future versions. Also, other tooling might refer to the official syntax documentation as well, which only allows C-style /* ... */ comments. Therefore we we think it's better to enforce our users have Strings files with a correct syntax to prevent any potential problems occurring.

You don't need to convert all // comments to /* ... */ style comments manually though. We can make use of Xcodes built-in Find & Replace functionality and their Support for Regexes – don't worry, we have created the Regex for you.

Step-by-Step Migration Guide

  1. First, make sure to commit any changes in your proje…

Replies: 1 comment

Comment options

Jeehut
Oct 6, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by Jeehut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant