Skip to content

Commit bd40c20

Browse files
authored
Merge pull request #12 from bitloops/add-keywords
Add keywords
2 parents 7183601 + c9353c4 commit bd40c20

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to the "bitloops-language" extension will be documented in t
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
### 0.3.2
8+
9+
Added new keywords of the bitloops language
10+
711
### 0.3.1
812

913
Added validation after the initialization of the workspace

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "bitloops-server-client",
33
"description": "BitLoops Server Client",
44
"license": "MIT",
5-
"version": "0.3.1",
5+
"version": "0.3.2",
66
"publisher": "Bitloops",
77
"engines": {
88
"vscode": "^1.63.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"icon": "assets/images/bitloops-language-logo-256x256.png",
1111
"license": "MIT",
12-
"version": "0.3.1",
12+
"version": "0.3.2",
1313
"scripts": {
1414
"vs:package": "vsce package",
1515
"vs:publish": "vsce publish",

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bitloops-lsp-server",
33
"description": "BitLoops Language Server",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"publisher": "Bitloops",
66
"license": "MIT",
77
"engines": {

server/src/types/keywords.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export const components = {
1414
PackagePort: 'PackagePort',
1515
Command: 'Command',
1616
Query: 'Query',
17+
DomainEvent: 'DomainEvent',
18+
IntegrationEvent: 'IntegrationEvent',
19+
DomainService: 'DomainService',
1720
};
1821

1922
export const keywords = [
@@ -141,6 +144,9 @@ export const keywords = [
141144
'Operations',
142145
'Mutation',
143146
'Query',
147+
'DomainEvent',
148+
'IntegrationEvent',
149+
'DomainService',
144150

145151
'StandardVO',
146152
];

syntaxes/bitloops.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@
6464
"patterns": [
6565
{
6666
"name": "keyword.control.templateClass.bitloops",
67-
"match": "\\b(Config|(REST\\.Methods)|REST|DTO|UseCase|Root|Entity|Rule|OK|Errors|ValueObject|Props|ReadModel|RESTController|RESTRouter|GraphQLController|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|ApplicationErrors|DomainErrors|DomainError|ApplicationError|Command|Query|CommandHandler|QueryHandler)\\b"
67+
"match": "\\b(Config|(REST\\.Methods)|REST|DTO|UseCase|Root|Entity|Rule|OK|Errors|ValueObject|Props|ReadModel|RESTController|RESTRouter|GraphQLController|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|ApplicationErrors|DomainErrors|DomainError|ApplicationError|Command|Query|CommandHandler|QueryHandler|Struct|IntegrationEvent|IntegrationEventHandler|DomainEvent|DomainEventHandler|ServicePort|DomainService)\\b"
6868
}
6969
]
7070
},
7171
"myClasses": {
7272
"patterns": [
7373
{
7474
"name": "entity.name.class.bitloops",
75-
"match": "\\b[A-Z]+[a-zA-Z0-9]*(DTO|UseCase|Aggregate|VO|Entity|Error|Controller|Router|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|Error|Props|Rule|Command|Query|ReadModel|CommandHandler|QueryHandler)\\b"
75+
"match": "\\b[A-Z]+[a-zA-Z0-9]*(DTO|UseCase|Aggregate|VO|Entity|Error|Controller|Router|Feature|Mapper|RepoPort|RepoAdapter|PackagePort|PackageAdapter|Error|Props|Rule|Command|Query|ReadModel|CommandHandler|QueryHandler|IntegrationEvent|IntegrationEventHandler|DomainEvent|DomainEventHandler|ServicePort|DomainService)\\b"
7676
}
7777
]
7878
},

0 commit comments

Comments
 (0)