mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Update Swift syntax style (close #1176)
This commit is contained in:
parent
edc7bc9295
commit
fd8cb35368
@ -7,8 +7,9 @@ Change Log
|
||||
|
||||
### Improvements
|
||||
|
||||
- Update Lua syntax style
|
||||
- Update JavaScript, PHP and CoffeeScript syntax styles for more accurate literal number highlight.
|
||||
- Update Lua syntax style.
|
||||
- Update Swift syntax style for more accurate outline extraction and literal number highlight.
|
||||
- Update JavaScript, PHP, and CoffeeScript syntax styles for more accurate literal number highlight.
|
||||
|
||||
|
||||
### Fixes
|
||||
|
@ -177,7 +177,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
/// store last version before termination
|
||||
func applicationWillTerminate(_ notification: Notification) {
|
||||
|
||||
_ = +1
|
||||
// store the latest version
|
||||
// -> The bundle version (build number) must be Int.
|
||||
let thisVersion = Bundle.main.bundleVersion
|
||||
|
@ -4,16 +4,16 @@ extensions:
|
||||
metadata:
|
||||
author: "1024jp"
|
||||
distributionURL: "https://coteditor.com"
|
||||
version: "4.4.0"
|
||||
description: "Based on Swift 5.3"
|
||||
version: "4.4.1"
|
||||
description: "Based on Swift 5.4"
|
||||
license: "Same as CotEditor"
|
||||
lastModified: "2021-01-23"
|
||||
lastModified: "2021-05-15"
|
||||
outlineMenu:
|
||||
- beginString: "//[ \\t]*(MARK:|TODO:|FIXME)[ \\t](.+)"
|
||||
keyString: "$2"
|
||||
description: "MARK/TODO/FIXME"
|
||||
bold: true
|
||||
- beginString: "^([ \\t]*)(@IBAction )?(override )?(open|public|internal|private)?(class )?func[ \\t]*(\\w*)\\((.*)\\)"
|
||||
- beginString: "^([ \\t]*)(@IBAction\\s+)?(override\\s+)?((?:open|public|internal|private)\\s+)?(class\\s+)?func[ \\t]*(\\w*)\\((.*)\\)"
|
||||
keyString: "$1$2$3$4$5func $6($7)"
|
||||
description: "function"
|
||||
- beginString: "^([ \\t]*)(?:[a-z]* )*class[ \\t]+(\\w+)(?=[\\s:][^\\w])"
|
||||
@ -318,7 +318,7 @@ types:
|
||||
- beginString: "Zip2Generator"
|
||||
- beginString: "Zip2Sequence"
|
||||
numbers:
|
||||
- beginString: "(?<![0-9a-z_$])[-+]?([0-9][0-9._]*|\\.[0-9][0-9_]*)(e-?[0-9._]+)?\\b"
|
||||
- beginString: "(?<![0-9a-z_$])-?[0-9][0-9._]*(e[-+]?[0-9._]+)?\\b"
|
||||
ignoreCase: true
|
||||
regularExpression: true
|
||||
- beginString: "\\b0b[01][01_]*\\b"
|
||||
|
Loading…
Reference in New Issue
Block a user