@domainlang/language 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/syntaxes/domain-lang.monarch.ts +0 -29
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ ContextMap SalesIntegration {
|
|
|
134
134
|
## Related packages
|
|
135
135
|
|
|
136
136
|
- [@domainlang/cli](https://www.npmjs.com/package/@domainlang/cli) - Command-line interface
|
|
137
|
-
- [DomainLang VS Code Extension](https://marketplace.visualstudio.com/items?itemName=
|
|
137
|
+
- [DomainLang VS Code Extension](https://marketplace.visualstudio.com/items?itemName=DomainLang.vscode-domainlang) - IDE support
|
|
138
138
|
|
|
139
139
|
## Documentation
|
|
140
140
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domainlang/language",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"displayName": "DomainLang Language",
|
|
5
5
|
"description": "Core language library for DomainLang - parse, validate, and query Domain-Driven Design models programmatically",
|
|
6
6
|
"author": "larsbaunwall",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Monarch syntax highlighting for the domain-lang language.
|
|
2
|
-
export default {
|
|
3
|
-
keywords: [
|
|
4
|
-
'ACL','AntiCorruptionLayer','BBoM','BigBallOfMud','BoundedContext','CF','Classification','Conformist','ContextMap','CustomerSupplier','Decision','Domain','DomainMap','Import','Metadata','Namespace','OHS','OpenHostService','P','PL','Partnership','Policy','PublishedLanguage','Rule','SK','SeparateWays','SharedKernel','Team','Term','UpstreamDownstream','aka','archetype','as','bc','businessModel','by','classification','cmap','contains','decision','decisions','description','dmap','dom','evolution','examples','for','glossary','import','in','integrations','is','meta','metadata','ns','policy','relationships','rule','rules','synonyms','team','term','terminology','this','type','vision'
|
|
5
|
-
],
|
|
6
|
-
operators: [
|
|
7
|
-
',','->','.',':','<-','<->','=','><'
|
|
8
|
-
],
|
|
9
|
-
symbols: /,|->|\.|:|<-|<->|=|><|\[|\]|\{|\}/,
|
|
10
|
-
|
|
11
|
-
tokenizer: {
|
|
12
|
-
initial: [
|
|
13
|
-
{ regex: /[_a-zA-Z][\w_-]*/, action: { cases: { '@keywords': {"token":"keyword"}, '@default': {"token":"ID"} }} },
|
|
14
|
-
{ regex: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/, action: {"token":"string"} },
|
|
15
|
-
{ include: '@whitespace' },
|
|
16
|
-
{ regex: /@symbols/, action: { cases: { '@operators': {"token":"operator"}, '@default': {"token":""} }} },
|
|
17
|
-
],
|
|
18
|
-
whitespace: [
|
|
19
|
-
{ regex: /\s+/, action: {"token":"white"} },
|
|
20
|
-
{ regex: /\/\*/, action: {"token":"comment","next":"@comment"} },
|
|
21
|
-
{ regex: /\/\/[^\n\r]*/, action: {"token":"comment"} },
|
|
22
|
-
],
|
|
23
|
-
comment: [
|
|
24
|
-
{ regex: /[^/\*]+/, action: {"token":"comment"} },
|
|
25
|
-
{ regex: /\*\//, action: {"token":"comment","next":"@pop"} },
|
|
26
|
-
{ regex: /[/\*]/, action: {"token":"comment"} },
|
|
27
|
-
],
|
|
28
|
-
}
|
|
29
|
-
};
|