diff options
Diffstat (limited to 'bundles/code/org.eclipse.fx.code.editor.langs/src-gen/org/eclipse/fx/code/editor/ldef/langs/swift.json')
-rw-r--r-- | bundles/code/org.eclipse.fx.code.editor.langs/src-gen/org/eclipse/fx/code/editor/ldef/langs/swift.json | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/bundles/code/org.eclipse.fx.code.editor.langs/src-gen/org/eclipse/fx/code/editor/ldef/langs/swift.json b/bundles/code/org.eclipse.fx.code.editor.langs/src-gen/org/eclipse/fx/code/editor/ldef/langs/swift.json new file mode 100644 index 000000000..e6c9aa388 --- /dev/null +++ b/bundles/code/org.eclipse.fx.code.editor.langs/src-gen/org/eclipse/fx/code/editor/ldef/langs/swift.json @@ -0,0 +1,217 @@ +{ + "$gtype": "LanguageDef", + "fileSuffix": "swift", + "partitionList": [ + { + "$gtype": "Partition", + "name": "__dftl_partition_content_type", + "ruleList": [], + "tokenList": [ + { + "$gtype": "Token", + "defaultToken": true, + "name": "swift_default", + "tokenScannerList": [] + }, + { + "$gtype": "Token", + "defaultToken": false, + "name": "swift_keyword", + "tokenScannerList": [ + { + "$gtype": "TokenScanner_Keyword", + "keywordList": [ + "as", + "break", + "case", + "catch", + "class", + "continue", + "convenience", + "default", + "defer", + "deinit", + "didSet", + "do", + "dynamic", + "else", + "extension", + "fallthrough", + "final", + "for", + "func", + "get", + "guard", + "if", + "import", + "in", + "infix", + "init", + "inout", + "internal", + "is", + "lazy", + "let", + "mutating", + "nil", + "operator", + "optional", + "override", + "postfix", + "prefix", + "private", + "protocol", + "public", + "repeat", + "required", + "return", + "self", + "set", + "static", + "subscript", + "super", + "switch", + "throws", + "try", + "typealias", + "unowned", + "var", + "weak", + "where", + "while", + "willSet", + "struct", + "enum" + ] + } + ] + }, + { + "$gtype": "Token", + "defaultToken": false, + "name": "swift_builtin_type", + "tokenScannerList": [ + { + "$gtype": "TokenScanner_Keyword", + "keywordList": [ + "Int", + "Bool" + ] + } + ] + }, + { + "$gtype": "Token", + "defaultToken": false, + "name": "swift_operator", + "tokenScannerList": [ + { + "$gtype": "TokenScanner_CharacterRule", + "characterList": [ + "~", + "!", + "%", + "^", + "\u0026", + "*", + "-", + "+", + "\u003d", + "|", + "/", + ".", + "\u003c", + "\u003e", + "?" + ] + } + ] + }, + { + "$gtype": "Token", + "defaultToken": false, + "name": "swift_number", + "tokenScannerList": [ + { + "$gtype": "TokenScanner_PatternRule", + "containmentPattern": "[0-9|\\.|e|E|-]", + "startLength": 0, + "startPattern": "[0-9]" + } + ] + }, + { + "$gtype": "Token", + "defaultToken": false, + "name": "swift_attribute", + "tokenScannerList": [ + { + "$gtype": "TokenScanner_PatternRule", + "containmentPattern": "[\\w]", + "startLength": 0, + "startPattern": "@" + } + ] + } + ] + }, + { + "$gtype": "Partition", + "name": "__swift_single_line_comment", + "ruleList": [ + { + "$gtype": "PartitionRule_SingleLine", + "endSeq": "", + "startSeq": "//" + } + ], + "tokenList": [ + { + "$gtype": "Token", + "defaultToken": true, + "name": "swift_doc_default", + "tokenScannerList": [] + } + ] + }, + { + "$gtype": "Partition", + "name": "__swift_multi_line_comment", + "ruleList": [ + { + "$gtype": "PartitionRule_MultiLine", + "endSeq": "*/", + "startSeq": "/*" + } + ], + "tokenList": [ + { + "$gtype": "Token", + "defaultToken": true, + "name": "swift_doc_default", + "tokenScannerList": [] + } + ] + }, + { + "$gtype": "Partition", + "name": "__swift_string", + "ruleList": [ + { + "$gtype": "PartitionRule_SingleLine", + "endSeq": "\"", + "escapedBy": "\\", + "startSeq": "\"" + } + ], + "tokenList": [ + { + "$gtype": "Token", + "defaultToken": true, + "name": "swift_string", + "tokenScannerList": [] + } + ] + } + ] +}
\ No newline at end of file |