7 Commits

Author SHA1 Message Date
Jamie Hardt
c03b3dfb8d Merge branch 'master' of https://github.com/iluvcapra/ptulsconv 2022-11-06 12:27:26 -08:00
Jamie Hardt
d2da8f1cb0 Update __init__.py
Version 1.2.0
2022-11-06 12:26:53 -08:00
Jamie Hardt
10c0e4f038 Fixed regex statements in parser
This clears up a bunch of `DeprecationWarning`s in pytest
2022-11-06 12:25:25 -08:00
Jamie Hardt
6703184f8f Update pythonpublish.yml 2022-11-06 12:07:27 -08:00
Jamie Hardt
1c11e4d570 Update python-package.yml 2022-11-06 12:07:01 -08:00
Jamie Hardt
94317c288f Update python-package.yml 2022-11-06 12:05:08 -08:00
Jamie Hardt
9e374df367 Update pythonpublish.yml
Updated setup-python action
2022-11-06 12:03:02 -08:00
5 changed files with 13 additions and 13 deletions

View File

@@ -19,9 +19,9 @@ jobs:
python-version: [3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.5.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.5.0
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4.3.0
with:
python-version: '3.x'
- name: Install dependencies

View File

@@ -1,6 +1,6 @@
from ptulsconv.docparser.ptuls_grammar import protools_text_export_grammar
__version__ = '1.0.1'
__version__ = '1.0.2'
__author__ = 'Jamie Hardt'
__license__ = 'MIT'
__copyright__ = "%s %s (c) 2022 %s. All rights reserved." % (__name__, __version__, __author__)

View File

@@ -67,8 +67,8 @@ protools_text_export_grammar = Grammar(
fs = "\t"
rs = "\n"
block_ending = rs rs
string_value = ~"[^\t\n]*"
integer_value = ~"\d+"
float_value = ~"\d+(\.\d+)?"
isp = ~"[^\d\t\n]*"
string_value = ~r"[^\t\n]*"
integer_value = ~r"\d+"
float_value = ~r"\d+(\.\d+)?"
isp = ~r"[^\d\t\n]*"
""")

View File

@@ -18,11 +18,11 @@ tag_grammar = Grammar(
key_tag = "[" key "]" word_sep?
short_tag = "$" key "=" word word_sep?
full_text_tag = "{" key "=" value "}" word_sep?
key = ~"[A-Za-z][A-Za-z0-9_]*"
value = ~"[^}]+"
key = ~r"[A-Za-z][A-Za-z0-9_]*"
value = ~r"[^}]+"
tag_junk = word word_sep?
word = ~"[^ \[\{\$][^ ]*"
word_sep = ~" +"
word = ~r"[^ \[\{\$][^ ]*"
word_sep = ~r" +"
modifier = ("@" / "&") word_sep?
"""
)