Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 95 additions & 45 deletions syntaxes/bitloops.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,103 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Bitloops",
"patterns": [
{
"include": "#keywords"
},
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Bitloops",
"patterns": [
{
"include": "#numeric"
},
{
"include": "#strings"
},
"include": "#keywords"
},
{
"include": "#numeric"
},
{
"include": "#strings"
},
{
"include": "#storage"
},
{
"include": "#comments"
},
"include": "#variables"
},
{
"include": "#comments"
},
{
"include": "#bitloopsClasses"
},
"include": "#bitloopsClasses"
},
{
"include": "#myClasses"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.bitloops",
"match": "\\b(const|let|continue|break|return|concretes|implements|extends)\\b"
}]
},
"include": "#myClasses"
}
],
"repository": {
"keywords": {
"patterns": [
{
"name": "keyword.control.bitloops",
"match": "\\b(const|let|continue|break|return|concretes|implements|extends|if|isBrokenIf)\\b"
},
{
"name": "keyword.operator.comparison.bitloops",
"match": "==|!="
},
{
"name": "keyword.operator.relational.bitloops",
"match": "<=|>=|<|>"
},
{
"name": "keyword.operator.logical.bitloops",
"match": "NOT|OR|AND"
},
{
"name": "keyword.operator.arithmetic.bitloops",
"match": "%|\\*|/|-|\\+"
}
]
},
"numeric": {
"patterns": [{
"name": "constant.numeric.bitloops",
"match": "\\b(0x[0-9a-fA-F]+|0b[01]+|\\d+)\\b"
}]
"patterns": [
{
"name": "constant.numeric.bitloops",
"match": "\\b(0x[0-9a-fA-F]+|0b[01]+|\\d+)\\b"
}
]
},
"bitloopsClasses": {
"patterns": [{
"name": "keyword.control.templateClass.bitloops",
"match": "\\b(Config|(REST\\.Methods)|REST|DTO|UseCase|Aggregate|Entity|OK|Errors|ValueObject|Props|RESTController|RESTRouter|GraphQLController|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|ApplicationErrors|DomainErrors|DomainError|ApplicationError)\\b"
}]
},
"patterns": [
{
"name": "keyword.control.templateClass.bitloops",
"match": "\\b(Config|(REST\\.Methods)|REST|DTO|UseCase|Root|Entity|Rule|OK|Errors|ValueObject|Props|RESTController|RESTRouter|GraphQLController|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|ApplicationErrors|DomainErrors|DomainError|ApplicationError)\\b"
}
]
},
"myClasses": {
"patterns": [{
"name": "entity.name.class.bitloops",
"match": "\\b[A-Z]+[a-zA-Z0-9]*(DTO|UseCase|Aggregate|VO|Entity|Error|Controller|Router|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|Error)\\b"
}]
},
"strings": {
"patterns": [
"patterns": [
{
"name": "entity.name.class.bitloops",
"match": "\\b[A-Z]+[a-zA-Z0-9]*(DTO|UseCase|Aggregate|VO|Entity|Error|Controller|Router|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|Error)\\b"
}
]
},
"storage": {
"patterns": [
{
"name": "storage.type.bitloops",
"match": "\\b(double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|timestamp)\\b"
},
{
"name": "storage.modifier.bitloops",
"match": "\\b(optional|required|public|private)\\b"
}
]
},
"variables": {
"patterns": [
{
"name": "variable.language.bitloops",
"match": "\\b(this)\\b"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.double.bitloops",
"begin": "\"",
Expand All @@ -64,7 +114,7 @@
"end": "`"
}
]
},
},
"comments": {
"patterns": [
{
Expand All @@ -78,6 +128,6 @@
}
]
}
},
"scopeName": "source.bitloops"
}
},
"scopeName": "source.bitloops"
}