mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Update Swift style
This commit is contained in:
parent
3046dca0ab
commit
7cd95aa497
@ -9,6 +9,7 @@ Change Log
|
||||
|
||||
- Avoid editor can be edited while a dialog covers it.
|
||||
- Update YAML syntax style for more reliable highlight.
|
||||
- Update Swift syntax style by fixing outline extraction.
|
||||
- [trivial] Adjust initial doucment window size.
|
||||
|
||||
|
||||
|
@ -3,16 +3,16 @@ extensions:
|
||||
metadata:
|
||||
author: "1024jp"
|
||||
distributionURL: "https://coteditor.com"
|
||||
version: "4.1.0"
|
||||
version: "4.1.1"
|
||||
description: "Based on Swift 4.2"
|
||||
license: "Same as CotEditor"
|
||||
lastModified: "2018-08-09"
|
||||
lastModified: "2018-09-06"
|
||||
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 )?(override )?(open|public|internal|private)?(class )?func[ \\t]*(\\w*)\\((.*)\\)"
|
||||
keyString: "$1$2$3$4$5func $6($7)"
|
||||
description: "function"
|
||||
- beginString: "^([ \\t]*)(?:[a-z]* )*class[ \\t]+(\\w+)(?=[\\s:][^\\w])"
|
||||
@ -27,6 +27,7 @@ outlineMenu:
|
||||
description: "initializer"
|
||||
- beginString: "^([ \\t]*)(?:[a-z]* )*enum[ \\t]+(\\w+)"
|
||||
keyString: "$1enum $2"
|
||||
bold: true
|
||||
description: "enum"
|
||||
- beginString: "^([ \\t]*)(?:[a-z]* )*extension[ \\t]+(\\w+)"
|
||||
keyString: "$1extension $2"
|
||||
@ -39,6 +40,7 @@ outlineMenu:
|
||||
italic: true
|
||||
- beginString: "^([ \\t]*)(?:[a-z]* )*struct[ \\t]+(\\w+)"
|
||||
keyString: "$1struct $2"
|
||||
bold: true
|
||||
description: "struct"
|
||||
completions: []
|
||||
attributes:
|
||||
|
Loading…
Reference in New Issue
Block a user