Skip to content

Commit

Permalink
Added syntax settings for INI, C, Objective C and Objective C++. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekazakov committed Jun 19, 2024
1 parent 61a64ff commit 0919105
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 1 deletion.
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"
}
}
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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@
"settings": "Bash.json",
"filemask": "*.sh"
},
{
"name": "C",
"settings": "C.json",
"filemask": "*.c"
},
{
"name": "C++",
"settings": "C++.json",
"filemask": "*.cpp, *.cxx, *.cc, *.h, *.hpp"
"filemask": "*.cc, *.cpp, *.cxx, *.hpp, *.hxx"
},
{
"name": "INI",
"settings": "INI.json",
"filemask": "*.ini"
},
{
"name": "JSON",
Expand All @@ -20,6 +30,16 @@
"settings": "Markdown.json",
"filemask": "*.md, *.markdown"
},
{
"name": "Objective C",
"settings": "Objective C.json",
"filemask": "*.m"
},
{
"name": "Objective C++",
"settings": "Objective C++.json",
"filemask": "*.mm, *.h"
},
{
"name": "XML",
"settings": "XML.json",
Expand Down
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"
}
}
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"
}
}

0 comments on commit 0919105

Please sign in to comment.