Skip to content

Commit

Permalink
Merge pull request #12 from bitloops/add-keywords
Browse files Browse the repository at this point in the history
Add keywords
  • Loading branch information
danias authored Apr 6, 2023
2 parents 7183601 + c9353c4 commit bd40c20
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the "bitloops-language" extension will be documented in t

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

### 0.3.2

Added new keywords of the bitloops language

### 0.3.1

Added validation after the initialization of the workspace
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bitloops-server-client",
"description": "BitLoops Server Client",
"license": "MIT",
"version": "0.3.1",
"version": "0.3.2",
"publisher": "Bitloops",
"engines": {
"vscode": "^1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"icon": "assets/images/bitloops-language-logo-256x256.png",
"license": "MIT",
"version": "0.3.1",
"version": "0.3.2",
"scripts": {
"vs:package": "vsce package",
"vs:publish": "vsce publish",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bitloops-lsp-server",
"description": "BitLoops Language Server",
"version": "0.3.1",
"version": "0.3.2",
"publisher": "Bitloops",
"license": "MIT",
"engines": {
Expand Down
6 changes: 6 additions & 0 deletions server/src/types/keywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const components = {
PackagePort: 'PackagePort',
Command: 'Command',
Query: 'Query',
DomainEvent: 'DomainEvent',
IntegrationEvent: 'IntegrationEvent',
DomainService: 'DomainService',
};

export const keywords = [
Expand Down Expand Up @@ -141,6 +144,9 @@ export const keywords = [
'Operations',
'Mutation',
'Query',
'DomainEvent',
'IntegrationEvent',
'DomainService',

'StandardVO',
];
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/bitloops.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
"patterns": [
{
"name": "keyword.control.templateClass.bitloops",
"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"
"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"
}
]
},
"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|Props|Rule|Command|Query|ReadModel|CommandHandler|QueryHandler)\\b"
"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"
}
]
},
Expand Down

0 comments on commit bd40c20

Please sign in to comment.