Skip to content

Commit

Permalink
Add keywords for conditional compilation and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
taku0 committed Jun 24, 2023
1 parent 83b691d commit 629b8a5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions swift-mode-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,17 @@ Excludes true, false, and keywords begin with a number sign.")

(defconst swift-mode:build-config-keywords
'("os" "arch" "swift" "compiler" "canImport" "targetEnvironment"
"OSX" "macOS" "iOS" "watchOS" "tvOS" "i386" "x86_64" "arm" "arm64"
"iOSApplicationExtension" "OSXApplicationExtension"
"macOSApplicationExtension" "simulator" "unavailable" "noasync")
"i386" "x86_64" "arm" "arm64"
"OSX" "OSXApplicationExtension"
"macOS" "macOSApplicationExtension"
"iOS" "iOSApplicationExtension"
"watchOS" "watchOSApplicationExtension"
"tvOS" "tvOSApplicationExtension"
"macCatalyst" "macCatalystApplicationExtension"
"Linux" "Windows"
"simulator" "unavailable" "noasync"
"hasFeature" "hasAttribute" "before" "introduced" "deprecated" "obsoleted"
"message" "renamed")
"Keywords for build configuration statements.")

(defconst swift-mode:standard-precedence-groups
Expand Down

0 comments on commit 629b8a5

Please sign in to comment.