-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d728c08
commit cf7129a
Showing
12 changed files
with
306 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"default": "zh-CN" | ||
"default": "zh-CN", | ||
"frozen": [], | ||
"require": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"title": "Lang Schema", | ||
"description": "Schema for lang file", | ||
"type": "object", | ||
"minProperties": 2, | ||
"maxProperties": 2, | ||
"properties": { | ||
"nepattern": { | ||
"title": "Nepattern", | ||
"description": "Scope 'nepattern' of lang item", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"type_error": { | ||
"title": "type_error", | ||
"description": "value of lang item type 'type_error'", | ||
"type": "string" | ||
}, | ||
"content_error": { | ||
"title": "content_error", | ||
"description": "value of lang item type 'content_error'", | ||
"type": "string" | ||
}, | ||
"validate_error": { | ||
"title": "validate_error", | ||
"description": "value of lang item type 'validate_error'", | ||
"type": "string" | ||
}, | ||
"sequence_form_error": { | ||
"title": "sequence_form_error", | ||
"description": "value of lang item type 'sequence_form_error'", | ||
"type": "string" | ||
}, | ||
"validate_reject": { | ||
"title": "validate_reject", | ||
"description": "value of lang item type 'validate_reject'", | ||
"type": "string" | ||
}, | ||
"pattern_head_or_tail_error": { | ||
"title": "pattern_head_or_tail_error", | ||
"description": "value of lang item type 'pattern_head_or_tail_error'", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
{ | ||
"$schema": "./.template.schema.json", | ||
"scopes": [ | ||
{ | ||
"scope": "nepattern", | ||
"types": [ | ||
"type_error", | ||
"content_error", | ||
"validate_error", | ||
"sequence_form_error", | ||
"validate_reject", | ||
"pattern_head_or_tail_error" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
{ | ||
"title": "Template", | ||
"description": "Template for lang items to generate schema for lang files", | ||
"type": "object", | ||
"properties": { | ||
"scopes": { | ||
"title": "Scopes", | ||
"description": "All scopes of lang items", | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"title": "Scope", | ||
"description": "First level of all lang items", | ||
"type": "object", | ||
"properties": { | ||
"scope": { | ||
"type": "string", | ||
"description": "Scope name" | ||
}, | ||
"types": { | ||
"type": "array", | ||
"description": "All types of lang items", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string", | ||
"description": "Value of lang item" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# This file is @generated by tarina.lang CLI tool | ||
# It is not intended for manual editing. | ||
|
||
from pathlib import Path | ||
|
||
from tarina.lang import lang | ||
|
||
|
||
lang.load(Path(__file__).parent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[project] | ||
name = "nepattern" | ||
version = "0.7.2" | ||
version = "0.7.3" | ||
description = "a complex pattern, support typing" | ||
authors = [ | ||
{name = "RF-Tar-Railt", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"typing-extensions>=4.5.0", | ||
"tarina>=0.4.1", | ||
"tarina>=0.5.1", | ||
] | ||
requires-python = ">=3.8" | ||
readme = "README.md" | ||
|