Update Swift style

This commit is contained in:
1024jp 2018-09-06 12:51:01 +09:00
parent 3046dca0ab
commit 7cd95aa497
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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: