Skip to content

Commit 0cb014a

Browse files
committed
Remove tokens for #fileLiteral, #colorLiteral, #imageLiteral
1 parent fd0b4d8 commit 0cb014a

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Sources/SwiftParser/TokenPrecedence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public enum TokenPrecedence: Comparable {
108108
case // Literals
109109
.floatingLiteral, .integerLiteral, .regexLiteral,
110110
// Pound literals
111-
.poundAvailableKeyword, .poundColorLiteralKeyword, .poundFileLiteralKeyword, .poundImageLiteralKeyword, .poundSourceLocationKeyword, .poundUnavailableKeyword, .poundHasSymbolKeyword,
111+
.poundAvailableKeyword, .poundHasSymbolKeyword,
112112
// Identifiers
113113
.dollarIdentifier, .identifier,
114114
// '_' can occur in types to replace a type identifier

gyb_syntax_support/Token.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,6 @@ def macro_name(self):
241241
PoundConfig('PoundAvailable', 'available', text='#available'),
242242
PoundConfig('PoundUnavailable', 'unavailable', text='#unavailable'),
243243

244-
PoundObjectLiteral('PoundFileLiteral', 'fileLiteral',
245-
text='#fileLiteral',
246-
name_for_diagnostics='file reference',
247-
protocol='ExpressibleByFileReferenceLiteral'),
248-
PoundObjectLiteral('PoundImageLiteral', 'imageLiteral',
249-
text='#imageLiteral',
250-
name_for_diagnostics='image',
251-
protocol='ExpressibleByImageLiteral'),
252-
PoundObjectLiteral('PoundColorLiteral', 'colorLiteral',
253-
text='#colorLiteral',
254-
name_for_diagnostics='color',
255-
protocol='ExpressibleByColorLiteral'),
256-
257244
PoundConfig('PoundHasSymbol', '_hasSymbol', text='#_hasSymbol'),
258245

259246
Literal('IntegerLiteral', 'integer_literal', name_for_diagnostics='integer literal',

0 commit comments

Comments
 (0)