Resource Bundles: Implement references on Kotlin string literals

#KT-6946 In Progress
This commit is contained in:
Alexey Sedunov
2015-09-17 16:27:54 +03:00
parent 9c7d6c1649
commit 5af4101f7d
29 changed files with 380 additions and 20 deletions
@@ -158,7 +158,7 @@ public final class InTextDirectivesUtils {
List<String> resultPrefixes = Lists.newArrayList();
for (String prefix : prefixes) {
if (prefix.startsWith("//")) {
if (prefix.startsWith("//") || prefix.startsWith("##")) {
resultPrefixes.add(StringUtil.trimLeading(prefix.substring(2)));
}
else {
@@ -181,7 +181,7 @@ public final class InTextDirectivesUtils {
while ((line = reader.readLine()) != null) {
line = line.trim();
if (line.startsWith("//")) {
if (line.startsWith("//") || line.startsWith("##")) {
String uncommentedLine = line.substring(2).trim();
if (!uncommentedLine.isEmpty()) {
result.add(uncommentedLine);