fork
This commit is contained in:
20
langs/swift/modifier.txt
Normal file
20
langs/swift/modifier.txt
Normal file
@ -0,0 +1,20 @@
|
||||
unowned(unsafe)
|
||||
unowned(safe)
|
||||
associativity
|
||||
nonmutating
|
||||
precedence
|
||||
override
|
||||
operator
|
||||
mutating
|
||||
unowned
|
||||
postfix
|
||||
prefix
|
||||
didSet
|
||||
right
|
||||
inout
|
||||
infix
|
||||
weak
|
||||
none
|
||||
left
|
||||
set
|
||||
get
|
2
langs/swift/operator.txt
Normal file
2
langs/swift/operator.txt
Normal file
@ -0,0 +1,2 @@
|
||||
...
|
||||
..
|
40
langs/swift/reserved.txt
Normal file
40
langs/swift/reserved.txt
Normal file
@ -0,0 +1,40 @@
|
||||
__FUNCTION__
|
||||
fallthrough
|
||||
dynamicType
|
||||
__COLUMN__
|
||||
typealias
|
||||
subscript
|
||||
extension
|
||||
protocol
|
||||
__LINE__
|
||||
__FILE__
|
||||
continue
|
||||
default
|
||||
switch
|
||||
struct
|
||||
static
|
||||
return
|
||||
import
|
||||
deinit
|
||||
while
|
||||
where
|
||||
super
|
||||
class
|
||||
break
|
||||
Type
|
||||
Self
|
||||
self
|
||||
init
|
||||
func
|
||||
enum
|
||||
else
|
||||
case
|
||||
var
|
||||
new
|
||||
let
|
||||
for
|
||||
is
|
||||
in
|
||||
if
|
||||
do
|
||||
as
|
24
langs/swift/swift.txt
Normal file
24
langs/swift/swift.txt
Normal file
@ -0,0 +1,24 @@
|
||||
### SWIFT LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME Swift
|
||||
VERSION 1.0
|
||||
|
||||
COMMENT (/\*(?R)|(.*?)\*/)|(//.*?$)
|
||||
STRING (?default)
|
||||
|
||||
STATEMENT (?default)
|
||||
RESERVED \b(?alt:reserved.txt)\b
|
||||
CAST:ENTITY (\b(?default:type)\b(?=\s*\([^\)]*\)))
|
||||
TYPE (?default)|\b(?alt:type.txt)\b|(?<=:)(\s*[A-Za-z_]\w*\b(?=\s*\{))
|
||||
MODIFIER \b(?alt:modifier.txt)\b
|
||||
|
||||
PROPERTY:VARIABLE (?<=\.)([A-Za-z_]\w*)
|
||||
ENTITY (?default)
|
||||
|
||||
VARIABLE (?default)|[A-Za-z_]\w*\s*$
|
||||
IDENTIFIER (?default)
|
||||
CONSTANT (?<!\w)[0-9]\.[0-9]+|(?<!\w)[0-9]\w*\b
|
||||
OPERATOR (?default)|(?alt:operator.txt)
|
||||
SYMBOL (?default)
|
4
langs/swift/type.txt
Normal file
4
langs/swift/type.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Double
|
||||
String
|
||||
Float
|
||||
Int
|
Reference in New Issue
Block a user