-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added syntax settings for INI, C, Objective C and Objective C++.
- Loading branch information
1 parent
61a64ff
commit d6b65b0
Showing
5 changed files
with
161 additions
and
1 deletion.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
Source/NimbleCommander/NimbleCommander/Resources/SyntaxHighlighting/C.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"lexer": "cpp", | ||
"wordlists": [ | ||
"alignas alignof asm auto break case char const constexpr continue default do double else enum extern false float for goto if inline int long nullptr register restrict return short signed sizeof static static_assert struct switch thread_local true typedef typeof typeof_unqual union unsigned void volatile while" | ||
], | ||
"properties": { | ||
"styling.within.preprocessor": "1", | ||
"lexer.cpp.allow.dollars": "0" | ||
}, | ||
"mapping": { | ||
"SCE_C_DEFAULT": "default", | ||
"SCE_C_COMMENT": "comment", | ||
"SCE_C_COMMENTLINE": "comment", | ||
"SCE_C_COMMENTDOC": "comment", | ||
"SCE_C_NUMBER": "number", | ||
"SCE_C_WORD": "keyword", | ||
"SCE_C_STRING": "string", | ||
"SCE_C_CHARACTER": "string", | ||
"SCE_C_UUID": "string", | ||
"SCE_C_PREPROCESSOR": "preprocessor", | ||
"SCE_C_OPERATOR": "operator", | ||
"SCE_C_IDENTIFIER": "identifier", | ||
"SCE_C_STRINGEOL": "string", | ||
"SCE_C_VERBATIM": "string", | ||
"SCE_C_REGEX": "string", | ||
"SCE_C_REGEX": "string", | ||
"SCE_C_COMMENTLINEDOC": "comment", | ||
"SCE_C_WORD2": "keyword", | ||
"SCE_C_COMMENTDOCKEYWORD": "comment", | ||
"SCE_C_COMMENTDOCKEYWORDERROR": "comment", | ||
"SCE_C_GLOBALCLASS": "identifier", | ||
"SCE_C_STRINGRAW": "string", | ||
"SCE_C_TRIPLEVERBATIM": "string", | ||
"SCE_C_HASHQUOTEDSTRING": "string", | ||
"SCE_C_PREPROCESSORCOMMENT": "comment", | ||
"SCE_C_PREPROCESSORCOMMENTDOC": "comment", | ||
"SCE_C_USERLITERAL": "identifier", | ||
"SCE_C_TASKMARKER": "comment", | ||
"SCE_C_ESCAPESEQUENCE": "string" | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
Source/NimbleCommander/NimbleCommander/Resources/SyntaxHighlighting/INI.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"lexer": "props", | ||
"wordlists": [], | ||
"properties": { | ||
"lexer.props.allow.initial.spaces": "1" | ||
}, | ||
"mapping": { | ||
"SCE_PROPS_DEFAULT": "default", | ||
"SCE_PROPS_COMMENT": "comment", | ||
"SCE_PROPS_SECTION": "keyword", | ||
"SCE_PROPS_ASSIGNMENT": "operator", | ||
"SCE_PROPS_KEY": "identifier", | ||
"SCE_PROPS_DEFVAL": "string" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
Source/NimbleCommander/NimbleCommander/Resources/SyntaxHighlighting/Objective C++.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"lexer": "cpp", | ||
"wordlists": [ | ||
"alignas alignof and and_eq asm auto bitand bitor bool break case catch char char8_t char16_t char32_t class compl concept const consteval constexpr constinit const_cast continue co_await co_return co_yield decltype default delete do double dynamic_cast else enum explicit export extern false final float for friend goto if import inline int long module mutable namespace new noexcept not not_eq nullptr operator or or_eq override private protected public register reinterpret_cast requires return short signed sizeof static static_assert static_cast struct switch template this thread_local throw true try typedef typeid typename union unsigned using virtual void volatile wchar_t while xor xor_eq", | ||
"BOOL Class NO SEL YES id nil self super @class @end @implementation @interface @optional @property @protocol @selector @synthesize @YES @NO __weak __strong" | ||
], | ||
"properties": { | ||
"styling.within.preprocessor": "1", | ||
"lexer.cpp.allow.dollars": "0" | ||
}, | ||
"mapping": { | ||
"SCE_C_DEFAULT": "default", | ||
"SCE_C_COMMENT": "comment", | ||
"SCE_C_COMMENTLINE": "comment", | ||
"SCE_C_COMMENTDOC": "comment", | ||
"SCE_C_NUMBER": "number", | ||
"SCE_C_WORD": "keyword", | ||
"SCE_C_STRING": "string", | ||
"SCE_C_CHARACTER": "string", | ||
"SCE_C_UUID": "string", | ||
"SCE_C_PREPROCESSOR": "preprocessor", | ||
"SCE_C_OPERATOR": "operator", | ||
"SCE_C_IDENTIFIER": "identifier", | ||
"SCE_C_STRINGEOL": "string", | ||
"SCE_C_VERBATIM": "string", | ||
"SCE_C_REGEX": "string", | ||
"SCE_C_REGEX": "string", | ||
"SCE_C_COMMENTLINEDOC": "comment", | ||
"SCE_C_WORD2": "keyword", | ||
"SCE_C_COMMENTDOCKEYWORD": "comment", | ||
"SCE_C_COMMENTDOCKEYWORDERROR": "comment", | ||
"SCE_C_GLOBALCLASS": "identifier", | ||
"SCE_C_STRINGRAW": "string", | ||
"SCE_C_TRIPLEVERBATIM": "string", | ||
"SCE_C_HASHQUOTEDSTRING": "string", | ||
"SCE_C_PREPROCESSORCOMMENT": "comment", | ||
"SCE_C_PREPROCESSORCOMMENTDOC": "comment", | ||
"SCE_C_USERLITERAL": "identifier", | ||
"SCE_C_TASKMARKER": "comment", | ||
"SCE_C_ESCAPESEQUENCE": "string" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
Source/NimbleCommander/NimbleCommander/Resources/SyntaxHighlighting/Objective C.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"lexer": "cpp", | ||
"wordlists": [ | ||
"alignas alignof asm auto break case char const constexpr continue default do double else enum extern false float for goto if inline int long nullptr register restrict return short signed sizeof static static_assert struct switch thread_local true typedef typeof typeof_unqual union unsigned void volatile while", | ||
"BOOL Class NO SEL YES id nil self super @class @end @implementation @interface @optional @property @protocol @selector @synthesize @YES @NO __weak __strong" | ||
], | ||
"properties": { | ||
"styling.within.preprocessor": "1", | ||
"lexer.cpp.allow.dollars": "0" | ||
}, | ||
"mapping": { | ||
"SCE_C_DEFAULT": "default", | ||
"SCE_C_COMMENT": "comment", | ||
"SCE_C_COMMENTLINE": "comment", | ||
"SCE_C_COMMENTDOC": "comment", | ||
"SCE_C_NUMBER": "number", | ||
"SCE_C_WORD": "keyword", | ||
"SCE_C_STRING": "string", | ||
"SCE_C_CHARACTER": "string", | ||
"SCE_C_UUID": "string", | ||
"SCE_C_PREPROCESSOR": "preprocessor", | ||
"SCE_C_OPERATOR": "operator", | ||
"SCE_C_IDENTIFIER": "identifier", | ||
"SCE_C_STRINGEOL": "string", | ||
"SCE_C_VERBATIM": "string", | ||
"SCE_C_REGEX": "string", | ||
"SCE_C_REGEX": "string", | ||
"SCE_C_COMMENTLINEDOC": "comment", | ||
"SCE_C_WORD2": "keyword", | ||
"SCE_C_COMMENTDOCKEYWORD": "comment", | ||
"SCE_C_COMMENTDOCKEYWORDERROR": "comment", | ||
"SCE_C_GLOBALCLASS": "identifier", | ||
"SCE_C_STRINGRAW": "string", | ||
"SCE_C_TRIPLEVERBATIM": "string", | ||
"SCE_C_HASHQUOTEDSTRING": "string", | ||
"SCE_C_PREPROCESSORCOMMENT": "comment", | ||
"SCE_C_PREPROCESSORCOMMENTDOC": "comment", | ||
"SCE_C_USERLITERAL": "identifier", | ||
"SCE_C_TASKMARKER": "comment", | ||
"SCE_C_ESCAPESEQUENCE": "string" | ||
} | ||
} |