mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
Swift syntax
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
61bf152181
commit
e6315c1c75
@ -34,7 +34,7 @@
|
||||
extensions=chm;css;ctl;diz;doc;docm;docx;dtd;fodg;fodp;fods;fodt;htm;html;letter;lsm;mail;man;me;msg;nroff;odg;odp;ods;odt;pdf;po;ppt;pptm;pptx;ps;rtf;sgml;shtml;tex;text;txt;xls;xlsm;xlsx;xml;xsd;xslt
|
||||
|
||||
[source]
|
||||
extensions=ada;asm;awk;bash;c;caml;cc;cgi;cpp;cxx;diff;erl;go;h;hh;hi;hpp;hs;inc;jasm;jav;java;js;m4;mak;mjs;ml;mli;mll;mlp;mly;pas;patch;php;phps;pl;pm;prg;py;rb;s;sas;sh;sl;st;tcl;tk;xq
|
||||
extensions=ada;asm;awk;bash;c;caml;cc;cgi;cpp;cxx;diff;erl;go;h;hh;hi;hpp;hs;inc;jasm;jav;java;js;m4;mak;mjs;ml;mli;mll;mlp;mly;pas;patch;php;phps;pl;pm;prg;py;rb;s;sas;sh;sl;st;swift;tcl;tk;xq
|
||||
|
||||
[media]
|
||||
extensions=3gp;aac;ac3;ape;asf;avi;dts;flac;flv;it;m3u;m4a;m4v;med;mid;midi;mkv;mod;mol;mov;mp2;mp3;mp4;mpeg;mpg;mpl;ogg;ogv;opus;s3m;ts;umx;vob;wav;webm;wma;wmv;xm
|
||||
|
@ -81,6 +81,7 @@ SYNTAXFILES = \
|
||||
spec.syntax \
|
||||
sql.syntax \
|
||||
strace.syntax \
|
||||
swift.syntax \
|
||||
swig.syntax \
|
||||
syntax.syntax \
|
||||
tcl.syntax \
|
||||
|
@ -307,5 +307,8 @@ include cobol.syntax
|
||||
file ..\*\\.kt$ Kotliin\sSource
|
||||
include kotlin.syntax
|
||||
|
||||
file ..\*\\.swift$ Swift\sProgram
|
||||
include swift.syntax
|
||||
|
||||
file .\* unknown
|
||||
include unknown.syntax
|
||||
|
223
misc/syntax/swift.syntax
Normal file
223
misc/syntax/swift.syntax
Normal file
@ -0,0 +1,223 @@
|
||||
define keywords yellow
|
||||
define attributes yellow
|
||||
define operators brightcyan
|
||||
define comments red
|
||||
define strings green
|
||||
define escapedchars brightgreen
|
||||
define interpolation brightgreen
|
||||
define unicode brightgreen
|
||||
define brackets brightcyan
|
||||
define punctuation brightcyan
|
||||
define range brightcyan
|
||||
define semicolon brightmagenta
|
||||
define compilerstatements brightred
|
||||
|
||||
context default
|
||||
keyword whole associatedtype keywords
|
||||
keyword whole class keywords
|
||||
keyword whole deinit keywords
|
||||
keyword whole enum keywords
|
||||
keyword whole extension keywords
|
||||
keyword whole fileprivate keywords
|
||||
keyword whole func keywords
|
||||
keyword whole import keywords
|
||||
keyword whole init keywords
|
||||
keyword whole inout keywords
|
||||
keyword whole internal keywords
|
||||
keyword whole let keywords
|
||||
keyword whole open keywords
|
||||
keyword whole operator keywords
|
||||
keyword whole private keywords
|
||||
keyword whole protocol keywords
|
||||
keyword whole public keywords
|
||||
keyword whole rethrows keywords
|
||||
keyword whole static keywords
|
||||
keyword whole struct keywords
|
||||
keyword whole subscript keywords
|
||||
keyword whole typealias keywords
|
||||
keyword whole var keywords
|
||||
|
||||
keyword whole break keywords
|
||||
keyword whole case keywords
|
||||
keyword whole continue keywords
|
||||
keyword whole default keywords
|
||||
keyword whole defer keywords
|
||||
keyword whole do keywords
|
||||
keyword whole else keywords
|
||||
keyword whole fallthrough keywords
|
||||
keyword whole for keywords
|
||||
keyword whole guard keywords
|
||||
keyword whole if keywords
|
||||
keyword whole in keywords
|
||||
keyword whole repeat keywords
|
||||
keyword whole return keywords
|
||||
keyword whole switch keywords
|
||||
keyword whole where keywords
|
||||
keyword whole while keywords
|
||||
|
||||
keyword whole as keywords
|
||||
keyword whole catch keywords
|
||||
keyword whole false keywords
|
||||
keyword whole is keywords
|
||||
keyword whole nil keywords
|
||||
keyword whole self keywords
|
||||
keyword whole Self keywords
|
||||
keyword whole super keywords
|
||||
keyword whole throws keywords
|
||||
keyword whole throw keywords
|
||||
keyword whole true keywords
|
||||
keyword whole try keywords
|
||||
|
||||
keyword whole associativity keywords
|
||||
keyword whole convenience keywords
|
||||
keyword whole didSet keywords
|
||||
keyword whole dynamic keywords
|
||||
keyword whole final keywords
|
||||
keyword whole get keywords
|
||||
keyword whole indirect keywords
|
||||
keyword whole infix keywords
|
||||
keyword whole lazy keywords
|
||||
keyword whole left keywords
|
||||
keyword whole mutating keywords
|
||||
keyword whole none keywords
|
||||
keyword whole nonmutating keywords
|
||||
keyword whole optional keywords
|
||||
keyword whole override keywords
|
||||
keyword whole postfix keywords
|
||||
keyword whole precedence keywords
|
||||
keyword whole prefix keywords
|
||||
keyword whole Protocol keywords
|
||||
keyword whole required keywords
|
||||
keyword whole right keywords
|
||||
keyword whole set keywords
|
||||
keyword whole Type keywords
|
||||
keyword whole unowned keywords
|
||||
keyword whole weak keywords
|
||||
keyword whole willSet keywords
|
||||
|
||||
keyword whole Any keywords
|
||||
keyword whole Bool keywords
|
||||
keyword whole Double keywords
|
||||
keyword whole Float keywords
|
||||
keyword whole Character keywords
|
||||
keyword whole Int keywords
|
||||
keyword whole Int16 keywords
|
||||
keyword whole Int32 keywords
|
||||
keyword whole Int64 keywords
|
||||
keyword whole Int8 keywords
|
||||
keyword whole String keywords
|
||||
keyword whole UInt keywords
|
||||
keyword whole UInt16 keywords
|
||||
keyword whole UInt32 keywords
|
||||
keyword whole UInt64 keywords
|
||||
keyword whole UInt8 keywords
|
||||
|
||||
keyword whole assert keywords
|
||||
keyword whole precondition keywords
|
||||
|
||||
keyword // comments
|
||||
keyword /\* comments
|
||||
keyword *\*/ comments
|
||||
|
||||
keyword > operators
|
||||
keyword < operators
|
||||
keyword \+ operators
|
||||
keyword - operators
|
||||
keyword \* operators
|
||||
keyword / operators
|
||||
keyword % operators
|
||||
keyword = operators
|
||||
keyword != operators
|
||||
keyword == operators
|
||||
keyword | operators
|
||||
keyword & operators
|
||||
keyword ^ operators
|
||||
keyword ~ operators
|
||||
keyword ! operators
|
||||
keyword whole _ operatots
|
||||
keyword { brackets
|
||||
keyword } brackets
|
||||
keyword ( brackets
|
||||
keyword ) brackets
|
||||
keyword [ brackets
|
||||
keyword ] brackets
|
||||
keyword . punctuation
|
||||
keyword , punctuation
|
||||
keyword : punctuation
|
||||
keyword ? punctuation
|
||||
keyword ... range
|
||||
keyword ..< range
|
||||
keyword ; semicolon
|
||||
|
||||
keyword `*` base
|
||||
|
||||
keyword whole @available attributes
|
||||
keyword whole @escaping attributes
|
||||
keyword whole @unavailable attributes
|
||||
keyword whole @introduced attributes
|
||||
keyword whole @deprecated attributes
|
||||
keyword whole @obsolete attributes
|
||||
keyword whole @message attributes
|
||||
keyword whole @main attributes
|
||||
keyword whole @renamed attributes
|
||||
keyword whole @discardableResult attributes
|
||||
keyword whole @dynamicCallable attributes
|
||||
keyword whole @dynamicMemberLookup attributes
|
||||
keyword whole @frozen attributes
|
||||
keyword whole @GKInspectable attributes
|
||||
keyword whole @inlinable attributes
|
||||
keyword whole @nonobjc attributes
|
||||
keyword whole @NSApplicationMain attributes
|
||||
keyword whole @NSCopying attributes
|
||||
keyword whole @objc attributes
|
||||
keyword whole @NSManaged attributes
|
||||
keyword whole @objcMembers attributes
|
||||
keyword whole @propertyWrapper attributes
|
||||
keyword whole @requires_stored_property_inits attributes
|
||||
keyword whole @testable attributes
|
||||
keyword whole @UIApplicationMain attributes
|
||||
keyword whole @usableFromInline attributes
|
||||
keyword whole @warn_unqualified_access attributes
|
||||
keyword whole @autoclosure attributes
|
||||
keyword whole @convention attributes
|
||||
keyword whole @escaping attributes
|
||||
keyword whole @unknown attributes
|
||||
|
||||
|
||||
context exclusive /\* \*/ comments
|
||||
spellcheck
|
||||
|
||||
|
||||
context exclusive // \n comments
|
||||
spellcheck
|
||||
|
||||
|
||||
context linestart # \n compilerstatements
|
||||
|
||||
|
||||
context #""" """# string
|
||||
spellcheck
|
||||
keyword \\(*) interpolation
|
||||
keyword \\\{0tnr"'\\\} escapedchars
|
||||
keyword \\u{*} unicode
|
||||
|
||||
|
||||
context """ """ string
|
||||
spellcheck
|
||||
keyword \\(*) interpolation
|
||||
keyword \\\{0tnr"'\\\} escapedchars
|
||||
keyword \\u{*} unicode
|
||||
|
||||
|
||||
context #" "# string
|
||||
spellcheck
|
||||
keyword \\(*) interpolation
|
||||
keyword \\\{0tnr"'\\\} escapedchars
|
||||
keyword \\u{*} unicode
|
||||
|
||||
|
||||
context " " string
|
||||
spellcheck
|
||||
keyword \\(*) interpolation
|
||||
keyword \\\{0tnr"'\\\} escapedchars
|
||||
keyword \\u{*} unicode
|
Loading…
Reference in New Issue
Block a user