branch: elpa/swift-mode commit f847923de3e26930c83c7efa1e215376f3d004f5 Author: taku0 <mxxouy6x3m_git...@tatapa.org> Commit: taku0 <mxxouy6x3m_git...@tatapa.org>
Highlight more compiler directives --- swift-mode-font-lock.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/swift-mode-font-lock.el b/swift-mode-font-lock.el index 621425e..cb12cfc 100644 --- a/swift-mode-font-lock.el +++ b/swift-mode-font-lock.el @@ -548,9 +548,9 @@ Return nil otherwise." "Keywords used as constants.") (defconst swift-mode:preprocessor-keywords - '("#available" "#colorLiteral" "#column" "#else" "#elseif" "#endif" - "#fileLiteral" "#file" "#function" "#if" "#imageLiteral" "#keypath" "#line" - "#selector" "#sourceLocation") + '("#available" "#colorLiteral" "#column" "#dsohandle" "#else" "#elseif" + "#endif" "#error" "#file" "#fileLiteral" "#function" "#if" "#imageLiteral" + "#keyPath" "#line" "#selector" "#sourceLocation" "#warning") "Keywords that begin with a number sign (#).") (defconst swift-mode:declaration-keywords @@ -580,8 +580,10 @@ Excludes true, false, and keywords begin with a number sign.") "Keywords reserved in particular contexts.") (defconst swift-mode:build-config-keywords - '("os" "arch" "swift" "OSX" "iOS" "watchOS" "tvOS" "i386" "x86_64" "arm" - "arm64" "iOSApplicationExtension" "OSXApplicationExtension") + '("os" "arch" "swift" "compiler" "canImport" "targetEnvironment" + "OSX" "macOS" "iOS" "watchOS" "tvOS" "i386" "x86_64" "arm" "arm64" + "iOSApplicationExtension" "OSXApplicationExtension" + "macOSApplicationExtension" "simulator") "Keywords for build configuration statements.") (defconst swift-mode:standard-precedence-groups