mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2026-01-01 09:20:49 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10c0e4f038 |
@@ -67,8 +67,8 @@ protools_text_export_grammar = Grammar(
|
|||||||
fs = "\t"
|
fs = "\t"
|
||||||
rs = "\n"
|
rs = "\n"
|
||||||
block_ending = rs rs
|
block_ending = rs rs
|
||||||
string_value = ~"[^\t\n]*"
|
string_value = ~r"[^\t\n]*"
|
||||||
integer_value = ~"\d+"
|
integer_value = ~r"\d+"
|
||||||
float_value = ~"\d+(\.\d+)?"
|
float_value = ~r"\d+(\.\d+)?"
|
||||||
isp = ~"[^\d\t\n]*"
|
isp = ~r"[^\d\t\n]*"
|
||||||
""")
|
""")
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ tag_grammar = Grammar(
|
|||||||
key_tag = "[" key "]" word_sep?
|
key_tag = "[" key "]" word_sep?
|
||||||
short_tag = "$" key "=" word word_sep?
|
short_tag = "$" key "=" word word_sep?
|
||||||
full_text_tag = "{" key "=" value "}" word_sep?
|
full_text_tag = "{" key "=" value "}" word_sep?
|
||||||
key = ~"[A-Za-z][A-Za-z0-9_]*"
|
key = ~r"[A-Za-z][A-Za-z0-9_]*"
|
||||||
value = ~"[^}]+"
|
value = ~r"[^}]+"
|
||||||
tag_junk = word word_sep?
|
tag_junk = word word_sep?
|
||||||
word = ~"[^ \[\{\$][^ ]*"
|
word = ~r"[^ \[\{\$][^ ]*"
|
||||||
word_sep = ~" +"
|
word_sep = ~r" +"
|
||||||
modifier = ("@" / "&") word_sep?
|
modifier = ("@" / "&") word_sep?
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user