Skip to content

Commit 168e6aa

Browse files
committed
Add "_" to Swift Consts as "keyword ... used in patterns"
1 parent e6b499e commit 168e6aa

File tree

3 files changed

+15
-24
lines changed

3 files changed

+15
-24
lines changed

src/org/opensolaris/opengrok/analysis/swift/Consts.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
22+
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2223
*/
2324
package org.opensolaris.opengrok.analysis.swift;
2425

@@ -127,5 +128,7 @@ public class Consts {
127128
kwd.add("unowned");
128129
kwd.add("weak");
129130
kwd.add("willSet");
131+
132+
kwd.add("_"); // 4.0.3 "Keywords ... used in patterns"
130133
}
131134
}

0 commit comments

Comments
 (0)