From bf49aa7958cd9bb35ae391bb68b7e19f715c19a3 Mon Sep 17 00:00:00 2001 From: Marius Schulz Date: Sun, 5 Apr 2015 22:34:50 +0200 Subject: [PATCH 1/2] Removes "true", "false", and "nil" from "built_in" --- src/languages/swift.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/languages/swift.js b/src/languages/swift.js index 1ca9a52f7e..f57b6a2f41 100644 --- a/src/languages/swift.js +++ b/src/languages/swift.js @@ -20,13 +20,13 @@ function(hljs) { 'bridgeFromObjectiveCUnconditional bridgeToObjectiveC ' + 'bridgeToObjectiveCUnconditional c contains count countElements ' + 'countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump ' + - 'encodeBitsAsWords enumerate equal false filter find getBridgedObjectiveCType ' + + 'encodeBitsAsWords enumerate equal filter find getBridgedObjectiveCType ' + 'getVaList indices insertionSort isBridgedToObjectiveC ' + 'isBridgedVerbatimToObjectiveC isUniquelyReferenced join ' + - 'lexicographicalCompare map max maxElement min minElement nil numericCast ' + + 'lexicographicalCompare map max maxElement min minElement numericCast ' + 'partition posix print println quickSort reduce reflect reinterpretCast ' + 'reverse roundUpToAlignment sizeof sizeofValue sort split startsWith strideof ' + - 'strideofValue swap swift toString transcode true underestimateCount ' + + 'strideofValue swap swift toString transcode underestimateCount ' + 'unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer ' + 'withUnsafePointerToObject withUnsafePointers withVaList' }; From fdeeebd7bc4107f54244dfea3e7105be9a44df98 Mon Sep 17 00:00:00 2001 From: Marius Schulz Date: Mon, 6 Apr 2015 00:35:48 +0200 Subject: [PATCH 2/2] Updates Swift markup test to treat `true` as a `literal` rather than as `built_in` --- test/markup/swift/functions.expect.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/markup/swift/functions.expect.txt b/test/markup/swift/functions.expect.txt index d62330192d..391119f01a 100644 --- a/test/markup/swift/functions.expect.txt +++ b/test/markup/swift/functions.expect.txt @@ -5,6 +5,6 @@ class MyClass { func f() { - return true + return true } }