@tolgee/cli 1.1.2 → 1.3.0
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/dist/commands/login.js +1 -1
- package/dist/commands/pull.js +17 -4
- package/dist/config/tolgeerc.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/extractor/extractor.js +16 -3
- package/dist/extractor/machines/react.js +60 -104
- package/dist/extractor/machines/shared/properties.js +76 -4
- package/dist/extractor/machines/shared/translateCall.js +141 -0
- package/dist/extractor/machines/svelte.js +50 -111
- package/dist/extractor/machines/vue/decoder.js +194 -0
- package/dist/extractor/machines/vue/extract.js +491 -0
- package/dist/extractor/processors/vueSfc.js +55 -0
- package/dist/extractor/tokenizer.js +11 -6
- package/dist/extractor/warnings.js +4 -0
- package/dist/extractor/worker.js +3 -2
- package/extractor.d.ts +3 -1
- package/package.json +18 -18
- package/textmate/HTML.tmLanguage +2650 -0
- package/textmate/Svelte.tmLanguage +80 -0
- package/textmate/THIRD_PARTY_NOTICE +27 -0
- package/textmate/TypeScript.tmLanguage +5888 -9736
- package/textmate/TypeScriptReact.tmLanguage +6137 -10166
- package/textmate/Vue.tmLanguage +1263 -0
@@ -1,4 +1,5 @@
|
|
1
1
|
{
|
2
|
+
"//": "Modified grammar from https://raw.githubusercontent.com/sveltejs/language-tools/master/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml",
|
2
3
|
"name": "Svelte Component",
|
3
4
|
"scopeName": "source.svelte",
|
4
5
|
"fileTypes": [
|
@@ -309,6 +310,30 @@
|
|
309
310
|
}
|
310
311
|
]
|
311
312
|
},
|
313
|
+
"destructuring-const": {
|
314
|
+
"patterns": [
|
315
|
+
{
|
316
|
+
"begin": "(?={)",
|
317
|
+
"end": "(?<=})",
|
318
|
+
"name": "meta.embedded.expression.svelte source.ts",
|
319
|
+
"patterns": [
|
320
|
+
{
|
321
|
+
"include": "source.ts#object-binding-pattern-const"
|
322
|
+
}
|
323
|
+
]
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"begin": "(?=\\[)",
|
327
|
+
"end": "(?<=\\])",
|
328
|
+
"name": "meta.embedded.expression.svelte source.ts",
|
329
|
+
"patterns": [
|
330
|
+
{
|
331
|
+
"include": "source.ts#array-binding-pattern-const"
|
332
|
+
}
|
333
|
+
]
|
334
|
+
}
|
335
|
+
]
|
336
|
+
},
|
312
337
|
"interpolation": {
|
313
338
|
"patterns": [
|
314
339
|
{
|
@@ -407,6 +432,9 @@
|
|
407
432
|
"begin": "(?<=const.*?)\\G",
|
408
433
|
"end": "(?=})",
|
409
434
|
"patterns": [
|
435
|
+
{
|
436
|
+
"include": "#destructuring-const"
|
437
|
+
},
|
410
438
|
{
|
411
439
|
"begin": "\\G\\s*([_$[:alpha:]][_$[:alnum:]]+)\\s*",
|
412
440
|
"end": "(?=\\=)",
|
@@ -418,6 +446,7 @@
|
|
418
446
|
},
|
419
447
|
{
|
420
448
|
"begin": "(?=\\=)",
|
449
|
+
"name": "meta.embedded.expression.svelte source.ts",
|
421
450
|
"end": "(?=})",
|
422
451
|
"patterns": [
|
423
452
|
{
|
@@ -859,6 +888,54 @@
|
|
859
888
|
}
|
860
889
|
]
|
861
890
|
},
|
891
|
+
"attributes-generics": {
|
892
|
+
"begin": "(generics)(=)([\"'])",
|
893
|
+
"beginCaptures": {
|
894
|
+
"1": {
|
895
|
+
"name": "entity.other.attribute-name.svelte"
|
896
|
+
},
|
897
|
+
"2": {
|
898
|
+
"name": "punctuation.separator.key-value.svelte"
|
899
|
+
},
|
900
|
+
"3": {
|
901
|
+
"name": "punctuation.definition.string.begin.svelte"
|
902
|
+
}
|
903
|
+
},
|
904
|
+
"end": "(\\3)",
|
905
|
+
"endCaptures": {
|
906
|
+
"1": {
|
907
|
+
"name": "punctuation.definition.string.end.svelte"
|
908
|
+
}
|
909
|
+
},
|
910
|
+
"contentName": "meta.embedded.expression.svelte source.ts",
|
911
|
+
"patterns": [
|
912
|
+
{
|
913
|
+
"include": "#type-parameters"
|
914
|
+
}
|
915
|
+
]
|
916
|
+
},
|
917
|
+
"type-parameters": {
|
918
|
+
"name": "meta.type.parameters.ts",
|
919
|
+
"patterns": [
|
920
|
+
{
|
921
|
+
"include": "source.ts#comment"
|
922
|
+
},
|
923
|
+
{
|
924
|
+
"name": "storage.modifier.ts",
|
925
|
+
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out|const)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"include": "source.ts#type"
|
929
|
+
},
|
930
|
+
{
|
931
|
+
"include": "source.ts#punctuation-comma"
|
932
|
+
},
|
933
|
+
{
|
934
|
+
"name": "keyword.operator.assignment.ts",
|
935
|
+
"match": "(=)(?!>)"
|
936
|
+
}
|
937
|
+
]
|
938
|
+
},
|
862
939
|
"tags": {
|
863
940
|
"patterns": [
|
864
941
|
{
|
@@ -929,6 +1006,9 @@
|
|
929
1006
|
},
|
930
1007
|
"name": "meta.tag.start.svelte",
|
931
1008
|
"patterns": [
|
1009
|
+
{
|
1010
|
+
"include": "#attributes-generics"
|
1011
|
+
},
|
932
1012
|
{
|
933
1013
|
"include": "#attributes"
|
934
1014
|
}
|
@@ -41,4 +41,31 @@ The above copyright notice and this permission notice shall be included in all c
|
|
41
41
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
42
42
|
|
43
43
|
|
44
|
+
---
|
45
|
+
Licensing information for the following files:
|
46
|
+
- Vue.tmLanguage
|
47
|
+
|
48
|
+
MIT License
|
49
|
+
|
50
|
+
Copyright (c) 2021-present Johnson Chu
|
51
|
+
|
52
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
53
|
+
of this software and associated documentation files (the "Software"), to deal
|
54
|
+
in the Software without restriction, including without limitation the rights
|
55
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
56
|
+
copies of the Software, and to permit persons to whom the Software is
|
57
|
+
furnished to do so, subject to the following conditions:
|
58
|
+
|
59
|
+
The above copyright notice and this permission notice shall be included in all
|
60
|
+
copies or substantial portions of the Software.
|
61
|
+
|
62
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
63
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
64
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
65
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
66
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
67
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
68
|
+
SOFTWARE.
|
69
|
+
|
70
|
+
|
44
71
|
---
|