Skip to content

Commit 58d2365

Browse files
committed
Remove unneeded raw number sign keywords
1 parent 02c551d commit 58d2365

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

src/languages/lib/kws_swift.js

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -151,30 +151,28 @@ export const precedencegroupKeywords = [
151151

152152
// Keywords that start with a number sign (#).
153153
// #(un)available is handled separately.
154-
export const numberSignKeywordsRaw = [
155-
'colorLiteral',
156-
'column',
157-
'dsohandle',
158-
'else',
159-
'elseif',
160-
'endif',
161-
'error',
162-
'file',
163-
'fileID',
164-
'fileLiteral',
165-
'filePath',
166-
'function',
167-
'if',
168-
'imageLiteral',
169-
'keyPath',
170-
'line',
171-
'selector',
172-
'sourceLocation',
173-
'warning'
154+
export const numberSignKeywords = [
155+
'#colorLiteral',
156+
'#column',
157+
'#dsohandle',
158+
'#else',
159+
'#elseif',
160+
'#endif',
161+
'#error',
162+
'#file',
163+
'#fileID',
164+
'#fileLiteral',
165+
'#filePath',
166+
'#function',
167+
'#if',
168+
'#imageLiteral',
169+
'#keyPath',
170+
'#line',
171+
'#selector',
172+
'#sourceLocation',
173+
'#warning'
174174
];
175175

176-
export const numberSignKeywords = numberSignKeywordsRaw.map(x => `#${x}`);
177-
178176
// Global functions in the Standard Library.
179177
export const builtIns = [
180178
'abs',

0 commit comments

Comments
 (0)